0
ÂżPor que no funciona?
2 Answers
+ 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