How can I make sense of the `else` clause of Python loops?
Many Python programmers are probably unaware that the syntax of while
loops and for
loops includes an optional else:
clause:
Python using a for with a while loop
Currently I have this
Python using a for with a while loop
Currently I have this
The difference between a “for” loop and a “while” loop
This is more of a question to aid my understanding as I learn python. I am working my way through an exercise book and the following challenge was given: