Question: Write a function mix in pseudocode or python that takes two strings as parameters and returns one array with the first element from the first

Write a function mix in pseudocode or python that takes two strings as parameters and returns one array with the first element from the first array, and the second element from the second array, and every other element thereafter.

Example call Returns
mix(hello, there) htehlelroe
mix(1234, abcd) 1a2b3c4d
mix(12, abcd) 1a2bcd
mix(1234, ab) 1a2b34

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!