SyntaxFix
Write A Post
Hire A Developer
Questions
Another FP aproach:
def repeat_string(string_to_repeat, repetitions): return ''.join([ string_to_repeat for n in range(repetitions)])