Created
November 6, 2019 16:39
-
-
Save gaspart/e442f56a7df2bc6abf5cbe7bef8da0fa to your computer and use it in GitHub Desktop.
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
#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