Question: In python, Complete the provided function, FirstMiddleLast(). FirstMiddleLast() takes in a string and returns a new string with the first, middle, and last character. If
In python,
Complete the provided function, FirstMiddleLast(). FirstMiddleLast() takes in a string and returns a new string with the first, middle, and last character. If the word has an even number of characters grab the middle two characters. It is safe to assume that no string passed in will be less than 3 characters.
Example:
Input: hello
Return value: hlo
Input: Grounds
Return value: Gus
Input: plural
Return value: purl
Input: password
Return value: pswd
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
