Question: Write a function longStr2Tuple() that gets two strings as parameter, creates and returns a tuple that contain the individual characters of the longest string. If

Write a function longStr2Tuple() that gets two strings as parameter, creates and returns a tuple that contain the individual characters of the longest string. If the strings have same length, than the tuple will contain characters of the first string. Example: The function call longStr2Tuple("abcd", "qwerty") will return a tuple containing characters "q", "w", "e", "r", "t", "y". Hint: Use the tuple() function.

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!