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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!