python function example programs
Example 1: functions python examples
def multiply(a, b):
return a * b
print(multiply(4, 4))
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()