How to do this code | Sololearn: Learn to code for FREE!
Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję
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 odpowiedzi
+ 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