kyub to Programmer Humor@programming.devEnglish · edit-26 days agoThe infamous "if loop" actually existsdiscuss.tchncs.deimagemessage-square30fedilinkarrow-up1191arrow-down112
arrow-up1179arrow-down1imageThe infamous "if loop" actually existsdiscuss.tchncs.dekyub to Programmer Humor@programming.devEnglish · edit-26 days agomessage-square30fedilink
minus-squareSaleh@feddit.orglinkfedilinkarrow-up1·edit-24 days agoCouldn’t you just handle this with: breakflag = False for x in iterator: if breakcondition(x): breakflag = True break dostuff()
Couldn’t you just handle this with:
breakflag = False for x in iterator: if breakcondition(x): breakflag = True break dostuff()