Code: import random import time correctanswer = random.randint(1,20) guesscount = 1 print(“I will be selecting numbers between 1 and 20”) print(“Picking a number…”) time.sleep(2) guess = int(input(“Guess a number: “)) while guess != correctanswer: guesscount += 1 if guess < correctanswer: guess = int(input(“You need to make…