0
Wat is the use of while : True ?
5 Respostas
+ 2
it's like while (1) in c
+ 2
Practically it is to execute a block of code continuously for some reason. it's always useful for non gui programs to get a specific user input
+ 2
used for infinite looping.
+ 1
like an infinite loop. but you can terminate the looping by break statement
+ 1
If you put in
while 1==1:
print ("anything you want")
it will make an infinite loop like this
1
1
1
1
1
1
1
1
1
1
1
1
.
.
.