function in python




 # a = 0

# b=8
# c=sum ((a,b)) #built in function
# print(c)

# def function1(a,b): #user defined function
# print("hello",a+b)

def function2(a,b):
"""This is a function which calculate the diffrence
of two numbers"""

average=(a+b)/2
print(average)
return average #v ke liye kiye h return

# v= function2(2,5)
# print(v)

print(function2.__doc__)