Divisibility Rules

Cover image

VSauce has a number of channels includingD1NGwhere they post fun educational content of all kinds. Recently I found myself itching to code and inspired bysome handy division math tricks.

So I threw together thisPython script with methods showcasing each divisibility rule example. The script has no direct practical purpose as each function could be done more simply for a computer to handle (likely just with%modulo for all cases). But I thought this would be fun enough to share!

In building out this project I learned how to write sometests in pythonand how to set upGitLab CI, which GitLab makes very easy with their WebIDE.

GitLab WebIDE with Templates and file autonaming

Always learning~