Question: Q 6 - Calculator ( 1 point ) In Q 2 , we saw that Python can act as a calculator; however, those standalone statements

Q6- Calculator (1 point)
In Q2, we saw that Python can act as a calculator; however, those standalone statements are not particularly reusable when you want to do calculations with a different set of numbers.
Here, we will make a series of functions to do all the mathematical operations that we want to do.
Define four functions, called summation, subtraction, multiplication, and division .
Each of them will take two inputs num1 and num2(that could be int or float), and use them as follows:
summation will add num1 to num2 and return the result
subtraction will carry out subtraction: num1 minus num2 and return the result
multiplication will multiply num1 by num2 and return the result
division will divide num1 by num2 and return the result
 Q6- Calculator (1 point) In Q2, we saw that Python can

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!