what are the functions in python code example
Example 1: def function in python
OK, basically def function() is a block where you will have one task that you can repeat all over again in the code to make it look short and clean
Example 2: functions in python programming
#Statements with pound sign are comments, just to guide. They wont be executed.
#Funtion Definition- Must include def
def my_Function():
#statements within a function, will be executed when the function is called
print("Hello World!")
#Function Calling
my_Function()