Functions

The keyword def introduces a function definition.

def my_function(): print("Hello From My Function!") my_function()

Define functions with a variable number of arguments

def sum_two_numbers(a, b): return a + b sum_two_numbers(8, 9)