the sort(method doesn' return sorted listbut rather sorts the list it is called on "in placethis is just like how the reverse(method works you would never want to use this line of codereturn spam sort(because that would return the value none (which is what sort(returnsinstead you would want separate line spam sort(and then the line return spam the reason you want to sort the clue list is to get rid of extra information based on the order of the clues if clue was ['pico''fermi''pico']then that would tell the player that the center digit of the guess is in the correct position since the other two clues are both picothe player would know that all they have to do is swap the first and third digit to get the secret number if the clues are always sorted in alphabetical orderthe player can' be sure which number the fermi clue refers this is what we want for the game the join(string method return join(cluethe join(string method returns list of strings as single string joined together the string that the method is called on (on line this is single space'appears between each string in the list for an exampleenter the following into the interactive shelljoin(['my''name''is''zophie']'my name is zophie'join(['life''the universe''and everything']'lifethe universeand everythingso the string that is returned on line is each string in clue combined together with single space between each string the join(string method is sort of like the opposite of the split(string method while split(returns list from split up stringjoin(returns string from combined list checking if string has only numbers def isonlydigits(num) returns true if num is string made up only of digits otherwise returns false if num ='' return false