Answered You can hire a professional tutor to get the answer.

QUESTION

I need a function named Shuffle that expects two arguments, each of which is a string.

I need a function named Shuffle that expects two arguments, each of which is a string. The function creates a new string by interleaving the elements of the first string with the elements of the second string and then returns that new string. The function should not verify that the arguments are strings or that the strings have the same length.

example

shuffle("abc", "def")

"abdecf"

shuffle("xxxxx", "ooooo")

"xoxoxoxoxo"

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question