Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mathematical Functions (Python 3)

Also written up at jane.berlin/www/articles/python2modules.html — this is the Python 3 update to the module/package example described there, showing how __init__.py and __all__ work for organizing a package into modules.

What Is It?

A small package (mathematical_functions) with a powers module inside it, split across base.py (square, cube) and sums.py (sum of squares, sum of cubes — built on top of base.py), tied together with __all__ in powers/__init__.py so from mathematical_functions.powers import * pulls in both.

Running It

python3 program.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages