Skip to content

Instantly share code, notes, and snippets.

@hungryzi
Last active January 10, 2021 18:19
Show Gist options
  • Save hungryzi/21202ace5e7b085ec4b94d10675a5cdf to your computer and use it in GitHub Desktop.
Save hungryzi/21202ace5e7b085ec4b94d10675a5cdf to your computer and use it in GitHub Desktop.
counter = 0
while counter < 3:
passcode = input("What's the passcode? ")
if passcode == '0042':
print("Welcome!")
break
else:
print("Wrong passcode!")
counter = counter + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment