Skip to content

Hello world

'Hello World!' python function.

hello_world_func(word)

Print a greeting message with the specified word.

Parameters:

Name Type Description Default
word str

The word to include in the greeting message.

required

Returns:

Type Description
None

This function doesn't return anything.

Source code in /home/docs/checkouts/readthedocs.org/user_builds/ccn-template/envs/latest/lib/python3.10/site-packages/ccn_template/hello_world.py
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
def hello_world_func(word):
    """Print a greeting message with the specified word.

    Parameters
    ----------
    word : str
        The word to include in the greeting message.

    Returns
    -------
    None
        This function doesn't return anything.

    """
    print(f"Hello {word}!")
    return