To begin grouping related code, we start defining a function with the keyword def.
Next comes the function's name in snake case, like greet_a, followed by parentheses, (), colon :, marks the beginning of the code block that belongs to the function.
To group code into the function, we indent it by two spaces. This function groups print() statement.
To run the code, we need to call the function. We do that by coding its name followed by parentheses, like greet_a().
>>> def greet_a():
... print("Hello")
... print("Morning")
...
>>> greet_a()
Hello
Morning