def askforguess() while true guess input(''enter the guess if guess isdecimal() return int(guessconvert string guess to an integer print('please enter number between and ' print('guess the numberby al sweigart al@inventwithpython com' print( secretnumber random randint( select random number print(' am thinking of number between and ' for in range( )give the player guesses print('you have {guesses left take guess format( ) guess askforguess( if guess =secretnumber break break out of the for loop if the guess is correct offer hint if guess secretnumber print('your guess is too low ' if guess secretnumber print('your guess is too high ' reveal the results if guess =secretnumber print('yayyou guessed my number!' else print('game over the number was thinking of was'secretnumberafter entering the source code and running it few timestry making experimental changes to it on your ownyou can also try to figure out how to do the followingcreate "guess the lettervariant that gives hints based on the alphabetical order of the player' guess make the hints after each guess say "warmeror "colderbased on the player' previous guess exploring the program try to find the answers to the following questions experiment with some modifications to the code and rerun the program to see what effect the changes have what happens if you change input(''on line to input(secretnumber) what error message do you get if you change return int(guesson line to return guessguess the number