Answer to Question #3360 in Python for mukunda

Question #3360
Write a program to perform calculator operations by defining functions?
1
Expert's answer
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS