To find average of 2 Numbers > Python Program
To find average of Numbers > Python Program
Artificial Intelligence
# Function to make average of 2 nos
def average(arg1,arg2):
A=(arg1+arg2)/2
return(A)
# function call
avg=average(10,20)
print("Average :",avg)
#>>>
# RESTART: C:/Users/student/AppData/Local/Programs/Python/Python35-32/avg.py
#Average : 15.0
#>>>
Comments
Post a Comment