How to use the module?
Before we try to test this function let’s see how could we use it?
There is nothing special here, I just wanted to show it, because the testing is basically the same.
def add(x, y):
"""Adding two numbers
>>> add(2, 2)
4
"""
return x * y
import mymath
print(mymath.add(2, 2))
from mymath import add
print(add(2, 2))