Turtles in the IPython Notebook
Project description
“Nevertheless… the turtle moves!” - Small Gods, by Terry Pratchett
This is a Turtle module for the IPython 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).
Mobilechelonian requires IPython 3 or above.
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.2.tar.gz
(91.8 kB
view details)
File details
Details for the file mobilechelonian-0.2.tar.gz
.
File metadata
- Download URL: mobilechelonian-0.2.tar.gz
- Upload date:
- Size: 91.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e97976086c3a252e9710c05678abc667249ec25e2713c285e6d3db95eabb15e1 |
|
MD5 | 7ed8a8a80120db0838951fe58f8a2925 |
|
BLAKE2b-256 | 170b984dc087428fdc78aeb21926c1818439e7eb8fdacdc430d48f6e0955b178 |