I need to write a code that will return the characters of two strings as a list of tuples. The code should stop when either one of the strings runs out of characters. I know is a simple code but I cannot get to work where it gives me more than just the first character.
it should look like this:
>>> twoStrings('Good', 'Morning') [('G', 'M'), ('o', 'o'), ('o', 'r'),('d', 'n')]
so far this is the code I have
def twoStrings(string1,string2): for i in zip(string1,string2): return [i]
but if I try to run it I only get this back:
can you please help me?