Write a program to perform calculator operations by defining functions?
1
2011-08-02T14:24:04-0400
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
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
Python
Comments