Computers and Technology

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.

answer
Answers: 1

Similar questions

Do you know the correct answer?
Create a function get_ends that consumes a string and returns a tuple of two values: the first lett...

Questions in other subjects:

Konu
Mathematics, 17.06.2020 14:57