1) [20 marks] Write a function named enter guess which will take the list of letters already guessed (initially, this will be an empty list). The function asks the user to enter a single letter and error checks to ensure that exactly 1 alphabetic character is entered It will also check to see if the letter has already been guessed. The single letter will be returned. For example: guess_list =[ 'a', 'b', 'c'] Enter a letter: 3 Please enter 1 and only 1 letter: x Please enter 1 and only 1 letter: b You have already guessed that letter. Try another: c You have already guessed that letter. Try another: ty Please enter 1 and only 1 letter: d print(guess) d 2) [10 marks] Write a function called get_word which takes a list of words and randomly returns one word. You must use either random. randint or random. choices. For example: target = get_word(words) print(target) student 3) [60 marks] Write a function called hangman which takes a string (a target word) as a parameter. This function displays the initial gallows and the number of underscores in the target word. As long as the target word has not been guessed or the user has not incorrectly guessed 7 letters, get a letter from the user (call enter_guess), if the letter is not in the target word, increment a counter that keeps track of the number of incorrect guesses and add one more piece to the gallows. If the letter is in the target word, replace the underscore in the location of the letter, with the letter. Then display the underscores (possibly including letters) and the letters guessed (sorted alphabetically). Once the target word has been guessed or the user has incorrectly guessed 7 letters, display the results. See screenshots at end. The join method (a string method) can be very helpful in this function. It takes an iterable (like a list) as a parameter and produces a string with the initial string between each of the list items, e.g.' '.join( [a,b ', ' c ', ' d ' ] ) would produce the string ' a b c d'. Note: The Python style guide states that functions should be no longer than 20 lines of code (a couple more is ok). This function will require much more than 20 lines. Therefore, it will be helpful to write helper functions that do parts of what's required, e.g. creating the initial gallows and displaying the results. 4) [10 marks] Write a function named ma in which takes no parameters. This function calls get_words to get a target word and then uses this to call the hangman function. This function returns None. See the following pages for examples of the game being played. Enter a letter: - letters guestedt Inter a letter: t - letters gutssed: e,t Enter a tetter: a iii a,e letters guessed: a,c, t Enter a letter: You have olreody guesses that letter. Try another:s sa_e. letters guessed: a,e,s,t Enter a letter: v so.e. letters guessed: a,e,s,f,y Cnter o letteri if \begin{tabular}{l|l} Coster on \\ 1 & 1 \\ 1 & 0 \end{tabular} Sofe letters guessed: a,e,f,s,t,y You took 6 gutases to guess "safe" Here is an example of a complete game with the player losing