Skip to content

Instantly share code, notes, and snippets.

@gaspart
Created November 6, 2019 16:39
Show Gist options
  • Save gaspart/e442f56a7df2bc6abf5cbe7bef8da0fa to your computer and use it in GitHub Desktop.
Save gaspart/e442f56a7df2bc6abf5cbe7bef8da0fa to your computer and use it in GitHub Desktop.
#bugged:
while my_num != 6
my_num = input('Guess what number I'm thinking of ')
if my_num > 6:
print('Too high')
elseif my_num < 6:
print('Too low')
else:
print('You guessed it')
#debugged:
my_num = 0
while my_num != 6:
my_num = int(input("Guess what number I'm thinking of: "))
if my_num > 6:
print('Too high')
elif my_num < 6:
print('Too low')
else:
print('You guessed it')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment