Activity
Task:
Create two separate Python modules and integrate them so that one module calls a function from the other.
Create a module called
math_operations.pyThis module should have a function
add_numbers(a, b)that returns the sum of two numbers.
Create another module called
calculator.pyThis module should import
math_operations.pyand use theadd_numbers()function to add two numbers entered by the user.
Run
calculator.pyto see the result.
Last updated