Created
August 6, 2018 15:04
-
-
Save solen003/4ee9ee784c46f40865f9680d8dec82ee to your computer and use it in GitHub Desktop.
has_33.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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