Question: Q 6 - Calculator ( 1 point ) In Q 2 , we saw that Python can act as a calculator; however, those standalone statements
Q Calculator point
In Q 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 num and numthat could be int or float and use them as follows:
summation will add num to num and return the result
subtraction will carry out subtraction: num minus num and return the result
multiplication will multiply num by num and return the result
division will divide num by num and return the result
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
