0
¿Por que no funciona?
2 Réponses
+ 1
Las líneas 13-36 no forman parte del ciclo "while". Agrégales un nivel de indentación.
while True :
print ( "Options: ")
print ( "Enter 'add' to add two numbers")
print ( "Enter 'subtract' to subtract two numbers")
print ( "Enter 'multiply' to multiply two numbers")
print ( "Enter 'divide' to divide two numbers")
print ( "Enter 'quit' to end the program")
user_input = input(":")
# A partir de aquí agrega un nivel de indentación a todas las líneas
if user_input == "quit":
break
...
+ 1
Muchas gracias, estoy empezando y tu ayuda ha sido fantastica, te lo agradezco mucho porque me cuesta bastante espero no decaer