Answer:
Step-by-step explanation:
The following code is written in Python. It is a function called remove_last_letter that does just that, removes the last letter of the last element in the array. and saves it back into the array. The code is written in three statements but only the middle statement is the actual code, the other two are the function creation statement and the last is the return statement.
def remove_last_letter(names):
names[-1] = names[-1][0:-1]
return names