calling a defination in python code example
Example 1: how to use def in python
def functionName(variable):
//function content
Example 2: explain def in python
def greet(name):
"""
This function greets to
the person passed in as
a parameter
"""
print("Hello, " + name + ". Good morning!")