0
what is the problem in this python code..
total = 0 while True: x = int(input('Enter Number')) if x == 0: print(total) break total = total + x
4 Respuestas
+ 2
Kaveesha Thilakarathna Indentation is everything in Python.
+ 7
The problem is with indentation if I understood your code properly. You need to nest if condition inside the while loop.
+ 1
Thank you :)
0
Thank you also :) it works now