diff --git a/Guess Me.py b/Guess Me.py new file mode 100644 index 0000000..57e7997 --- /dev/null +++ b/Guess Me.py @@ -0,0 +1,16 @@ +import random + +n = random.randint(1, 99) +guess = int(input("Enter an integer from 1 to 99: ")) +while n != "guess": + print() + if guess < n: + print ("guess is low") + guess = int(input("Enter an integer from 1 to 99: ")) + elif guess > n: + print ("guess is high") + guess = int(input("Enter an integer from 1 to 99: ")) + else: + print ("you guessed it!") + break + print()