+ 1
What does "while true" and "while false" mean exactly ?
2 Respostas
+ 3
while loops run in the format of:
While condition
do code
where the code will run if the condition is true. In the case of a while true loop, the condition is always true and hence always runs (infinite loop). while false will simply skip the code inside the loop.
while true loops can still be used, with a break statement to get out of them.
0
in python