Question #3360

Write a program to perform calculator operations by defining functions?

Expert's answer

def calc_mul (a, b):

return a * b

def calc_add (a, b):

return a + b

def calc_sub (a, b):

return a - b

def calc_div (a, b):

return a / b

a, b, c = 10, 20, 30

return a * b

def calc_add (a, b):

return a + b

def calc_sub (a, b):

return a - b

def calc_div (a, b):

return a / b

a, b, c = 10, 20, 30

## Comments

## Leave a comment