Computer Science, asked by lorpamishra, 15 days ago

Write a program to accept a string and display it as many times as the user wants, in python.

Answers

Answered by Rockstar9086
2

Answer:

Here is your Answer My friend

Hope you like it

Attachments:
Answered by samarthkrv
1

Answer:

s = input("Enter a string:")

n = int(input("Enter how many times you want to print the string:"))

print("Printing" , s , n , "times")

for i in range(n):

   print(s)

Explanation:

Similar questions