LearnPy Hub
← Iterators & Generators problems
Medium

Pair Up, Filling Gaps

Read two lines of words that may differ in length. Pair them up with itertools.zip_longest(fillvalue='-') and print each pair on its own line.

Input

Two lines.

Output

Lines.

Sample 1

Input
a b c
x y
Output
a x
b y
c -

Sample 2

Input
one
1 2 3
Output
one 1
- 2
- 3
solution.py
Output appears here
Pair Up, Filling Gaps · Python practice problem · LearnPy Hub