0
While loops for a freshman.
Why does a program finish when I write 'while False'? It starts looping with 'while True', you know. What difference is between these operations? (sorry for my English)
1 Answer
+ 1
while loop only executes the code within it if it is evaluated as true. while (false) will be always false and while (true) will be always true.