Computer Science, asked by rathvibh56, 1 day ago

Write a program to input users name and display it number of times which user want in python​

Answers

Answered by samarthkrv
0

Answer:

def printTimes(s,n):

   for i in range(n):

       print(s)

s = input("Enter a string:")

n = int(input("Enter the number of times you want to print it:"))

printTimes(s,n)

Explanation:

Similar questions