return 'you got it! clue [ for in range(len(guess)) if guess[ =secretnum[ ] clue append('fermi' elif guess[iin secretnum clue append('pico' if len(clue= return 'bagels clue sort( return join(clue def isonlydigits(num) returns true if num is string made up only of digits otherwise returns false if num ='' return false for in num if not in ' split() return false return true def playagain() this function returns true if the player wants to play againotherwise it returns false print('do you want to play again(yes or no)' return input(lower(startswith(' ' numdigits maxguess print(' am thinking of % -digit number try to guess what it is (numdigits) print('here are some clues:' print('when saythat means:' print(pico one digit is correct but in the wrong position ' print(fermi one digit is correct and in the right position ' print(bagels no digit is correct ' while true secretnum getsecretnum(numdigits