def repeater(string, n):
return string * n
Write a function named repeater()
that takes two arguments (a string and a number), and returns a new string where the input string is repeated that many times.
Repeater.repeat("a", 5)
should return
"aaaaa"
def repeater(string, n):
return string * n