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:

str

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:

int

Examples

>>> saved_world("not-real.txt")

Submodules#

python_package.cli module#

python_package.cli.main()[source]#

python_package.mockup module#

python_package.mockup.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:

str

Examples

>>> hello_world(3)
'hello world hello world hello world'
python_package.mockup.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:

int

Examples

>>> saved_world("not-real.txt")