Good morning!
I am currently learning Python and in a simple application of practice I found the following error:
File "ruta_fichero", line 9
print(num2, "es menor que ", str(num1))
^
SyntaxError: invalid syntax
The code that I have written is the following:
num1 = int(input("Escribe un número: "))
num2 = int(input("Escribe un número mayor que ", str(num1), ":"))
while num2 > num1:
num1 = num2
num2 = int(input("Escribe un número mayor que ", str(num1), ":")
print(num2, "es menor que ", str(num1))
Do you know where the syntax error may be?
Thank you very much!