+ 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(": ")

7th Apr 2018, 12:38 AM
ALBERT SAURAV
ALBERT SAURAV - avatar
4 Answers
+ 3
It is infinite , what do you mean.
7th Apr 2018, 12:42 AM
Tomer Sim
Tomer Sim - avatar
+ 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.
7th Apr 2018, 1:14 AM
Jesse Bayliss
Jesse Bayliss - avatar
+ 1
run it it stops....
7th Apr 2018, 12:43 AM
ALBERT SAURAV
ALBERT SAURAV - avatar
0
thanks.....coders
7th Apr 2018, 2:58 AM
ALBERT SAURAV
ALBERT SAURAV - avatar