Monday, June 9, 2014

ELSE in FOR loops - Python

http://stackoverflow.com/a/9980160

Turns out that you can use ELSE after a FOR loop to make it give an output if it didn't have anything to iterate.

No comments:

Post a Comment