One-Line While Loops
This lesson covers the possibility to write one-line
while-loops. It also covers the limitations of this approach. You’ll find the example used in this video below.
a = 5 while a > 0: a = a - 1; print(a)
Comments & Discussion
Become a Member to join the conversation.