Function Definition: def

A function is defined using the def keyword, followed by the function name and parentheses that may contain parameters.
The block of code that makes up the function must be indented.

Syntax:

def function_name(parameters):
    # Code block
    return result

Basic Example:

def greet():
    print("Hello, welcome to the Python course.")

greet()

This function does not take any parameters and does not return a value.