RosettaCodeData/Task/Repeat-a-string/Processing-Python-mode/repeat-a-string.processing-py

7 lines
100 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
def setup():
rep = repeat("ha", 5)
println(rep)
def repeat(s, times):
return s * times