LearnPy Hub
← Lists problems
Medium

Interleave Two Lists

Read two lists of words. Take items alternately (first list first). When one list runs out, add the rest of the other. Print the result as one line.

Input

Two lines.

Output

One line.

Sample 1

Input
a b c
1 2 3
Output
a 1 b 2 c 3

Sample 2

Input
x
1 2 3
Output
x 1 2 3
solution.py
Output appears here
Interleave Two Lists · Python practice problem · LearnPy Hub