FUNCTIONS#3
#1EXAMPLE
""""
a=5
b=6
c=sum((a,b))
print(c)
"""
#2basic
"""""
def gd(a,b):
print("Hi! Coder",a+b)
gd(5,7)
"""
#3function and return
""""
def hd(a,g):
average=(a+g)/2
#print(average)
return average
v=hd(3,5)
print(v)
"""
#4 Doc string
def hd(a,g):
"""Hi ! coders/programers or anyone if you see this after this date ,Hi it is 10-7-2020,15:31 PM"""
average=(a+g)/2
print(average)
return average
print(hd.__doc__)
Comments
Post a Comment
Comment if you need help .I will not replay sometimes