I am trying to write a Python function that takes two lists as arguments and interleaves them. The order of the component lists should be preserved. If the lists do not have the same length, the elements of the longer list should end up at the end of the resulting list. For example, I'd like to put this in Shell:
interleave(["a", "b"], [1, 2, 3, 4])
And get this back:
["a", 1, "b", 2, 3, 4]
If you can help me I'd appreciate it.