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.4.tar.gz
(91.3 kB
view details)
Built Distribution
File details
Details for the file mobilechelonian-0.4.tar.gz
.
File metadata
- Download URL: mobilechelonian-0.4.tar.gz
- Upload date:
- Size: 91.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eec04cc1c82447d1a58804fde35c4546842f87cd0ca2a4f1352d90f5caab3f64 |
|
MD5 | 8fec0aa91a8430be4eb62c66b674557c |
|
BLAKE2b-256 | a45bcb06eef770372aae458ca1fe3574d1fbea3eef469fae733d4f1049b6881f |
File details
Details for the file mobilechelonian-0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: mobilechelonian-0.4-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 | 8aed32750e057a3ecad5eb9136371b78a2ec721ce44315676f67a99a06413926 |
|
MD5 | 9157c116d65ff69d3c55a7030dac769d |
|
BLAKE2b-256 | cd4dec0ff32658efb6b6faf22f18c9acdd4b46674a82b30033bbda7e158e91f2 |