WHAT THE FUCK that’s amazing!! I’ve been using python for years and never knew that. I initialize a variable to False right above the loop and set it True if I break.
Python seems to have these little amazing nuggets of logic built in, that most of the time go unnoticed. Is there a list of random things like this I could read?
0
u/[deleted] Mar 25 '18
[deleted]