- 1
total = 0 while True: # prompt the user to enter a number num = input("Enter a number (or type 'no more' to stop): ")
can anyone tell me the logic of this code
1 Answer
+ 5
If you write it in a single line, it is a syntax error and won't work.
can anyone tell me the logic of this code