# Plays the guessing game higher or lower # This should actually be something that is semi random like the # last digits of the time or something else, but that will have to # wait till a later lab. (Extra Credit, modify it to be random # after the Modules lab) number = 7 guess = -1 the number!") print("Guess while guess != number: guess = int(input("Is it... ")) guess == number: if You guessed it right!") print("Hooray! guess < number: elif print("It's bigger...") elif guess > number: not so big.") print("It's
# Plays the guessing game higher or lower # This should actually be something that is semi random like the # last digits of the time or something else, but that will have to # wait till a later lab. (Extra Credit, modify it to be random # after the Modules lab) number = 7 guess = -1 print("Guess the number!") while guess != number: guess = int(input("Is it... ")) if guess == number: print("Hooray! You guessed it right!") elif guess < number: print("It's bigger...") elif guess > number: print("It's not so big.")