Skip to content

Instantly share code, notes, and snippets.

@solen003
Created August 6, 2018 15:04
Show Gist options
  • Save solen003/4ee9ee784c46f40865f9680d8dec82ee to your computer and use it in GitHub Desktop.
Save solen003/4ee9ee784c46f40865f9680d8dec82ee to your computer and use it in GitHub Desktop.
has_33.py
def has_33(mylist):
for i in range(len(mylist)-1):
if mylist[i] == 3 and mylist[i+1] == 3:
return True
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment