#Jonathan Hudson #Student Number 12347890 #Date: 2020-08-26 #Lecture Practice import random def guess(random_number) : number = int(input("Enter number to compare with my choice: ")) if (number == random_number) : print(number, "is the number I picked!") return True elif (number < random_number) : print(number, "is smaller than the number I picked.") else : print (number, "is greater or equal to the number I picked.") return False def main() : random_number = random.randrange(1,101) print("I've picked an integer number between 1 and 100. 10 guesses.") count = 0 found = False while count < 10 and not found: found = guess(random_number) main()