Mod2Import Assignment
Mod2Import Assignment
Problem Statement:
You work in XYZ Corporation as a Data Analyst. Your corporation has told you to work on
importing various functions.
Tasks to be performed:
a. Inside the file, define 4 methods named – addition, subtraction, multiplication, and
division.
b. Each method should only accept 2 arguments and should return the result of operation
performed in each method. For e.g., addition() should return the sum of two arguments.
a. Now call the 4 methods from the Module.py file, i.e., addition(), subtraction(),
multiplication(), and division().
3. From the Module file, import only the addition() and pass the arguments so that it can
display the result from the method.
4. From the Module file, import only the subtraction() and pass the arguments so that it can
display the result from the method.
5. From the Module file, import both the multiplication() and division() and pass the arguments
so that it can display the result from the methods.