0

What is the use of 'True' after while statement?

i = 5 while True: print (i)

2nd May 2017, 12:48 PM
Heerak Ghanesh (HERO)
Heerak Ghanesh (HERO) - avatar
2 odpowiedzi
+ 6
Hey! Wrong code!It must be i = 5 while True: print (i) That will be infinite loop bc "while" will running if condition is "true"
2nd May 2017, 1:09 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
0
condition that "it's true that the loop is running"
2nd May 2017, 12:54 PM
Sammi
Sammi - avatar