mod.py:
def addone(number):
result = number + 1
test.py:
import mod
print mod.addone(2)
The result I get is None, so I am guessing the result variable is missing. What is missing from my code.
And yes, I know this can easily be done without a module, it's just an example.
return:return number + 1.