Question: Python: Given two strings, a and b , create a bigger string made of the first char of a, the first char of b, the

Python: Given two strings, a and b, create a bigger string made of the first char of a, the first char of b, the second char of a, the second char of b, and so on. Any leftover chars go at the end of the result.

mixString("abc", "xyz") "axbycz" mixString("Hi", "There") "HTihere" mixString("xxxx", "There") "xTxhxexre"

def mix_string(a, b):

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!