RosettaCodeData/Task/Repeat-a-string/Python/repeat-a-string-3.py

5 lines
67 B
Python

def repeat(s, times):
return s * times
print(repeat("ha", 5))