Question: Create a Python module named math _ utils.py with two functions: add ( x , y ) and subtract ( x , y ) .

Create a Python module named math_utils.py with two functions: add(x, y) and subtract(x, 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 test_math_utils.py that:
imports the math_utils module.prompts the user to enter two numbers.uses the add and subtract functions from math_utils to compute and display the results.

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 Programming Questions!