LearnPy Hub
← Lists problems
Easy

Insert at the Front

Read a list of words and a new word. Insert the new word at position 0 with insert() and print the words on one line.

Input

Two lines.

Output

One line.

Sample 1

Input
b c
a
Output
a b c

Sample 2

Input
two three
one
Output
one two three
solution.py
Output appears here
Insert at the Front · Python practice problem · LearnPy Hub