Create two separate Python modules and integrate them so that one module calls a function from the other.
Create a module called math_operations.py
math_operations.py
This module should have a function add_numbers(a, b) that returns the sum of two numbers.
add_numbers(a, b)
Create another module called calculator.py
calculator.py
This module should import math_operations.py and use the add_numbers() function to add two numbers entered by the user.
add_numbers()
Run calculator.py to see the result.
Last updated 1 year ago