Skip to content

Instantly share code, notes, and snippets.

@offby1
Created July 16, 2015 03:30
Show Gist options
  • Select an option

  • Save offby1/dbe6cb170656af98be8f to your computer and use it in GitHub Desktop.

Select an option

Save offby1/dbe6cb170656af98be8f to your computer and use it in GitHub Desktop.
last_status = object()
for index, item in enumerate(sequence_with_three_things):
if index == 2 and last_status == whatever:
continue
last_status = do_some_work()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment