00:01
Okay, so in order to first work on this string combination function, we'll need to take in some input.
00:10
So what we can do is say, so combined input or com .inp equals input, and then int equals com .inp .split.
00:33
So this actually has a space here, just note that.
00:40
So this is now splitting the inputs into a list that should contain two different strings.
00:46
And then we can say s1 equals int z0, and s2 equals int z1.
00:56
And then, now we can say counter1 equals 0, counter2 equals 0, and then result equals this empty string.
01:20
So while counter1 is less than the length of string1, and counter2 is less than the length of string2, we're going to say result plus equals, sorry.
01:49
So what i'm doing here is basically creating some counters to go through each string, and then get the characters in each string corresponding to those counters, and then pretty much alternate them while adding to this result string that i'm going to eventually return.
02:03
So we can do that by saying s1 at counter1 plus s2 at counter2, and then counter1 plus equals 1, and counter2 plus equals 1.
02:26
So hopefully this is clear that we start going through each string character by character, and then adding them in alternating order, and then increment the counters.
02:37
So then one of these is probably going to.....