LearnPy Hub
← Loops problems
Easy

Print a Word n Times

Read a word and a number n. Print the word n times, one per line, using a for loop.

Input

A word, then n.

Output

n lines.

Sample 1

Input
hi
3
Output
hi
hi
hi

Sample 2

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