Question: def add ( a , b ) : return a + b def subtract ( a , b ) : return a - b def
def adda b: return a b def subtracta b: return a b def multiplya b: return a b def dividea b: if b : return "Cannot divide by zero." else: return a b # Testing the functions with sample inputs printadd # printsubtract # printmultiply # printdivide # printdivide # "Cannot divide by zero."
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
