0

Why doesn't this code print anything? Is it because the condition is not given? Or because it says while False?

while False: print("Looping...")

23rd Nov 2019, 1:41 PM
Esteban Rueda
Esteban Rueda - avatar
3 odpowiedzi
+ 4
The statements inside the while block will run, as long as the condition is true. False is never True so it won't even run once.
23rd Nov 2019, 1:52 PM
Tibor Santa
Tibor Santa - avatar
0
Thanks!
23rd Nov 2019, 2:05 PM
Esteban Rueda
Esteban Rueda - avatar