Turtles in the Jupyter Notebook
Project description
“Nevertheless… the turtle moves!” - Small Gods, by Terry Pratchett
This is a Turtle module for the Jupyter Notebook. It’s based on code by aspidites, one of two groups at Macewan University that built Turtle as a class assignment (the other was PACattack; I could have based this on either, but I had to pick one).
Using it looks like this:
from mobilechelonian import Turtle t = Turtle() t.speed(5) colours=["red","blue","yellow","brown","black","purple","green"] t.penup(); t.left(90); t.forward(200);t.right(90);t.pendown() for i in range (0,18): t.pencolor(colours[i%7]) t.right(20) t.forward(50) t.right(180) t.home()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mobilechelonian-0.3.tar.gz
(91.3 kB
view details)
Built Distribution
File details
Details for the file mobilechelonian-0.3.tar.gz
.
File metadata
- Download URL: mobilechelonian-0.3.tar.gz
- Upload date:
- Size: 91.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06f678e77a2be6785ddc446c04345306630de54d8b703fb225fa1a8df5ace188 |
|
MD5 | 3db2bb7ebdd4fad227cd786129338f33 |
|
BLAKE2b-256 | 1d696fc3a7dcb52944c93cae2bbee7da21e96e1123db9bb5f2ae77a85e7899e3 |
File details
Details for the file mobilechelonian-0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: mobilechelonian-0.3-py2.py3-none-any.whl
- Upload date:
- Size: 94.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c84f129cac9fd2c86e6a0c481ddd1d52af9d10b2e0d5d1fc6a25beb12e85fa95 |
|
MD5 | 52465472bda4fef13b863cd00bf60aeb |
|
BLAKE2b-256 | a7def0dac94ce20ccf36f33a86ed2c999d8d2d6acde55d4cf937f4619f20d330 |