This notebook imports a calculator module built as a class.
First we import the module
import calc as ca
Then, we have to create a object from the class, as the constructor does not need any external parameters, we leave it blank
c=ca.calculator()
dir(c)
and we use it!
a=2
b=5
c.sum(a,b)
c.sub(a,b)
c.mult(a,b)
c.div(a,b)
c.pow(a,b)