how to define functin in python code example
Example 1: python function
# Defines Function
def my_function():
print("Hello")
print("Bye")
# Calls Function
my_function()
Example 2: python functions
#Functions
def string():
print('This is a function')
print(string())