Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

import random

secretNumber = random.randint(1,20000000000)
print("The nummber is betwwen 1 and 200000000.")
for guessesTaken in range(1,20):
print("Guess!")
guess = int(input())

if guess < secretNumber:


print("Too low.")
elif guess > secretNumber:
print("Too High.")
else:
break
if guess == secretNumber:
print("Good Job! You guessed the number in " +str(guessesTaken)+ "
guesses!")
else:
print("Nope. I was thinking of " +str(secretNumber)+ "!")

You might also like