python_package package#
- python_package.hello_world(n: int) str [source]#
Print ‘hello world’ n-times.
- Parameters:
n (int) – How many time to return hello world
- Returns:
str of ‘hello world’ n-times
- Return type:
Examples
>>> hello_world(3) 'hello world hello world hello world'
- python_package.saved_world(filename: str) int [source]#
Count how many times ‘hello world’ is in a file.
- Parameters:
filename (str) – The file to read
- Returns:
How many times ‘hello world’ is in the file
- Return type:
Examples
>>> saved_world("not-real.txt")