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