Question: Create a function get_ends that consumes a string and returns a tuple of two values: the first letter of the string and the last letter
Create a function get_ends that consumes a string and returns a tuple of two values: the first letter of the string and the last letter of the string, both upper-cased. For example, the string "Python" would return ("P", "N"). Call this function on a string of your choice and assign the result to two variables (using multiple assignment), and then print each variable.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
