Skip to content

Instantly share code, notes, and snippets.

@adamoudad
Created October 16, 2022 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamoudad/963774417ec6ba745d5fecbd3e71de7c to your computer and use it in GitHub Desktop.
Save adamoudad/963774417ec6ba745d5fecbd3e71de7c to your computer and use it in GitHub Desktop.
for i in range(n):
# Do stuff...
if condition_is_met:
break
else:
# This will be executed only if break is never read.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment