Question: python,plz Complete the get_first_last_letters() function that takes a single string parameter word. The function returns a new string consisting of the first and last letters

Complete the get_first_last_letters() function that takes a single string parameter word. The function returns a new string consisting of the first and last letters of word. You can assume that the parameter word will always have a length of at least 3. Some examples of the function being used are shown below: For example: cr Test Result word = "computer" print(get_first_last_letters (word)) print(get_first_last_letters("keyboard")) kd Answer: (penalty regime: 0 %) Reset answer 1 def get_first_last_letters (word): Complete the get_middle_letters() function that takes a single string parameter word. The function returns a new string consisting of all the letters of word, apart from the first and last letters. You can assume that the parameter word will always have a length of at least 3. Some examples of the function being used are shown below: For example: Test Result word = 'computer" ompute print(get_middle_letters(word)) print (get_middle_letters ("keyboard")) eyboar Answer: (penalty regime: 0%) Reset answer 1. pef get_middle_letters(word)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
