Give an example of defining and calling functions.
Create a function that prints the sum of two numbers and divides the sum by 5. The result should be float.
Expert's answer
#Defining function
def sum_div(x,y):
#calculating and printing sumsum = x + y
print("Sum is:",sum)
#Calculating divisiondiv=sum/5print("Quotient is:",div)
#Calling function
sum_div(400,5)