In Python how do I take the input x and y and output x,ytimes given that x is a string and y an integer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In Python how do I take the input x and y and output x,ytimes given that x is a string and y an integer

1st Sep 2021, 10:58 AM
Mikah Hannah
Mikah Hannah - avatar
2 Answers
+ 1
#Let's try an experiment x = input() # string input y = int(input()) # integer input # I wonder if this will work print(x * y)
1st Sep 2021, 11:09 AM
Rik Wittkopp
Rik Wittkopp - avatar
- 1
By learning the course
1st Sep 2021, 11:01 AM
Rellot's screwdriver
Rellot's screwdriver - avatar