What is the output of the below Python Program? Question x = 1 while True: if x % 5 = = 0: break print(x) x + = 1 in progress 0 Python TheDataMonk 55 years 2 Answers 713 views Grand Master -1
Answers ( 2 )
1
2
3
4
x +=1 will keep on incrementing unless x%5 == 0 becomes TRUE. It will happen only when x is 5
1
2
3
4
loop breaks when x is at 5 and we come out of the while loop (hence it would not be printed).