Can anyone help me to explain :while True loop.In a word infinite loop? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Can anyone help me to explain :while True loop.In a word infinite loop?

25th Mar 2021, 3:49 PM
Chinmoy Roy
Chinmoy Roy - avatar
3 Respostas
+ 1
If your condition in while loop is evaluated as TRUE, it will keep running until the condition changes to false. But if you define that the condition will be always TRUE, then the script will run forever.
25th Mar 2021, 3:56 PM
Tomas Konecny
0
If I didn't explain well, please write me a message
25th Mar 2021, 3:57 PM
Tomas Konecny
0
i=1 while i<=5: print (i) i+=1 if I==3: print ("skipping 3") continue #please help me to understand this code in a easy way.can anyone help me there?
25th Mar 2021, 4:26 PM
Chinmoy Roy
Chinmoy Roy - avatar