defining python function with -> code example
Example 1: how to use def in python
def functionName(variable):
//function content
Example 2: functions in python
#Functions
#Functions are followed by the 'def' keyword
#Name your function
def myfunc():
a = 'This is a func'
#Calling the function
myfunc()
print(myfunc())