From 4065b54e533e1a6ed60524a73e9f093b028287b2 Mon Sep 17 00:00:00 2001 From: DDmitroIDD Date: Mon, 26 Oct 2020 18:55:47 +0200 Subject: [PATCH] my proposition --- files/1_lectura_datos.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/files/1_lectura_datos.py b/files/1_lectura_datos.py index 56372be..81a29a7 100644 --- a/files/1_lectura_datos.py +++ b/files/1_lectura_datos.py @@ -5,10 +5,10 @@ print ("Buen día " + nombre) -running = True # -while running: - valor_1 = 0 - valor_2 = 0 +# running = True # +while True: # minus one variable and minus one line + # valor_1 = 0 + # valor_2 = 0 # minus two lines print ("---Calculadora---") print ("1- Sumar") print ("2- Multiplicar") @@ -29,4 +29,5 @@ multiplicacion = valor_1 * valor_2 print ("El resultado es: %d" % multiplicacion) elif op == 3: - running = False + break # exit loop + # running = False