How to do this code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to do this code

Write a program to take x and y as input and output the string x, repeated y times

21st Jan 2022, 6:17 AM
Seal with illegal things
Seal with illegal things - avatar
4 Answers
+ 2
In what programming language?
21st Jan 2022, 6:23 AM
Рената Ремизова
Рената Ремизова - avatar
+ 1
Phyton
21st Jan 2022, 6:23 AM
Seal with illegal things
Seal with illegal things - avatar
+ 1
x, y = input(), int(input()) for i in range(y): print(x)
21st Jan 2022, 6:25 AM
Рената Ремизова
Рената Ремизова - avatar
+ 1
Ok thank you
21st Jan 2022, 6:25 AM
Seal with illegal things
Seal with illegal things - avatar