8 points · by atreadw · 6y ago · 7 comments
All these else variants come in handy from time to time.
for/len==0
The for/else statement in Python - Open Source Automation
In this post we'll explore Python's lesser known for/else statement. The for/else statement can be used in conjunction with a break.
Open Source Automation