forked from benda/packagehowto
initialized package
This commit is contained in:
8
src/numerix/__init__.py
Normal file
8
src/numerix/__init__.py
Normal file
@@ -0,0 +1,8 @@
|
||||
"""
|
||||
# Numerix
|
||||
"""
|
||||
|
||||
def add_four(x):
|
||||
return x + 4
|
||||
|
||||
from .addition import add_two
|
||||
17
src/numerix/addition.py
Normal file
17
src/numerix/addition.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from .numbers import one
|
||||
|
||||
|
||||
def __add_secret(x):
|
||||
return x + 7
|
||||
|
||||
|
||||
def add_two(x):
|
||||
return x + 2
|
||||
|
||||
|
||||
def one_plus_two():
|
||||
return add_two(one())
|
||||
|
||||
|
||||
|
||||
|
||||
9
src/numerix/numbers.py
Normal file
9
src/numerix/numbers.py
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
def one():
|
||||
return 1
|
||||
|
||||
|
||||
def random():
|
||||
return 4 # this number was obtained from a fair die
|
||||
|
||||
Reference in New Issue
Block a user