Question: Create a Python module named math _ utils.py with two functions: add ( x , y ) and subtract ( x , y ) .
Create a Python module named mathutils.py with two functions: addx y and subtractx y The add function should return the sum of x and y and the subtract function should return the difference when y is subtracted from x
Write a Python program named testmathutils.py that:
imports the mathutils module.prompts the user to enter two numbers.uses the add and subtract functions from mathutils to compute and display the results.
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
