Source code for python_package.mockup
from itertools import repeat
[docs]
def hello_world(n: int) -> str:
"""Print 'hello world' n-times.
Parameters
----------
n : int
How many time to return hello world
Returns
-------
str
str of 'hello world' n-times
"""
return " ".join(repeat("hello world", n))