LearnPy Hub
← Lists problems
Easy

Join Two Lists

Read two lines of words. Add the second list to the end of the first with extend() and print the combined list.

Input

Two lines.

Output

A Python list.

Sample 1

Input
a b
c d
Output
['a', 'b', 'c', 'd']

Sample 2

Input
x
y z
Output
['x', 'y', 'z']
solution.py
Output appears here
Join Two Lists · Python practice problem · LearnPy Hub