Divisibility Rules
This commit is contained in:
parent
d882b7e116
commit
84f78cabbf
2 changed files with 17 additions and 0 deletions
17
content/posts/divisibility-rules.md
Normal file
17
content/posts/divisibility-rules.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
title: 'Divisibility Rules'
|
||||
date: 2020-09-15
|
||||
tags:
|
||||
- Tech
|
||||
- Python
|
||||
coverImage: /images/uploads/divisbility-rules.jpg
|
||||
description: >-
|
||||
Fun Python side project inspired by VSauce.
|
||||
---
|
||||
|
||||
VSauce has a number of channels including [D1NG](https://www.youtube.com/channel/UClq42foiSgl7sSpLupnugGA) where they post fun educational content of all kinds. Recently I found myself itching to code and inspired by some handy division math tricks.
|
||||
|
||||
So I threw together this [Python script with methods showcasing each divisibility rule example](https://gitlab.com/gaiety/divisibilityrules). 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!
|
||||
|
||||
Always learning~
|
||||
_P.S. This was my first time writing Python [tests](https://gitlab.com/gaiety/divisibilityrules/-/tree/main/tests)!_
|
BIN
static/images/uploads/divisbility-rules.jpg
Normal file
BIN
static/images/uploads/divisbility-rules.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 74 KiB |
Loading…
Add table
Reference in a new issue