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
Get step-by-step solutions from verified subject matter experts
