LearnPy Hub
← Strings problems
Easy

Repeat a Word

Read a word and n. Print the word n times separated by spaces.

Input

Word, then n.

Output

One line.

Sample 1

Input
hi
3
Output
hi hi hi

Sample 2

Input
Python
1
Output
Python
solution.py
Output appears here
Repeat a Word · Python practice problem · LearnPy Hub