I am trying to make this return a string by alternating the letters from the 2 strings inputted. For example, foldStrings("abc","def") should return "adbecf". This is what I have, but all it does is check if the two strings are the same length or not. I'm not really sure where to start.
def foldStrings(string1,string2):
x=string1
y=string2
if len(x)==len(y):
return "True"
else:
return "The two strings are not equal in length."
It's the "True" statement that needs to be changed. Could anyone help me out?