Run a script in Functional Python Programming:
python -m Chapter_8.ch08_ex1
.
Demo
take pymod
mkdir -p moda modb
touch moda/__init__.py modb/__init__.py
cat << EOF > modb/lib.py
def myadd(a, b):
return a * 10 + b
EOF
cat << EOF > moda/app.py
from modb.lib import myadd
print(myadd(3, 5))
EOF
python -m moda/app
35