Python Exercise

The Python programming language has a small, formal, and rigid syntax.

Identifiers

A docstring

    """Prints a message to standard output.
    If `name` exists, prints it prefixed with "Hello".
    If it doesn't, reverses a "Hello world!" string.

    Parameters:
    name (string): an optional name of a person

    Returns:
    Nothing
    """

Multi-line comments

# This is a multi-line comment.
# Don't need to run these.
# We can wait.
# say_hello("")
# say_hello("Touger")

Single-line comments

   # check if the name is None or empty