+ 2
Why it didn't conutinue as forever loop...(sorry for bad english)
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") saurav = input(": ")
4 Réponses
+ 3
It is infinite , what do you mean.
+ 2
It stopped for me because it encountered an error when it asked for input and didn't get any. The error caused the whole program to abruptly end, not just the loop.
+ 1
run it it stops....
0
thanks.....coders