Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started