Example of creating a function in Python
Example of a Python function definition:
def add(a, b): return a + b
Then to call the function type its name replacing parameters with your own arguments:
result = add(5, 7)
Print out the result:
print(result)
Output:
12