Write a program to accept a string and display it as many times as the user wants, in python.
Answers
Answered by
2
Answer:
Here is your Answer My friend
Hope you like it
Attachments:
Answered by
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