guessthenumber pythis is guess the number game import random secretnumber random randint( print(' am thinking of number between and 'ask the player to guess times for guessestaken in range( )print('take guess 'guess int(input()if guess secretnumberprint('your guess is too low 'elif guess secretnumberprint('your guess is too high 'elsebreak this condition is the correct guessif guess =secretnumberprint('good jobyou guessed my number in str(guessestakenguesses!'elseprint('nope the number was thinking of was str(secretnumber)you can view the execution of this program at /guessthenumberlet' look at this code line by linestarting at the top this is guess the number game import random secretnumber random randint( firsta comment at the top of the code explains what the program does thenthe program imports the random module so that it can use the random randint(function to generate number for the user to guess the return valuea random integer between and is stored in the variable secretnumber print(' am thinking of number between and 'ask the player to guess times for guessestaken in range( )print('take guess 'guess int(input()the program tells the player that it has come up with secret number and will give the player six chances to guess it the code that lets the player enter guess and checks that guess is in for loop that will loop at most six times the first thing that happens in the loop is that the player types in guess since input(returns stringits return value is passed straight into