Skip to main content

IPythonDisplayTurtles edited for my schools python courses

Project description

SSSsnake

IPythonDisplayTurtle with addded functionality for our schools python classes.

How to install from a terminal/command prompt: pip install SSSsnake

To install from a jupyter notebook cell: !pip install SSSsnake

How to use:

from IPythonDisplayTurtle import Snake

colours=["red","orange","yellow","green","blue","purple"]
divisions = 12
angle = 360/divisions 

t = Snake(_pendown = 0)
for i in range(divisions):
    if(i%2 == 0):
        t.pendown()
        t.pencolor(colours[int(i/2)%len(colours)])
    else:
        t.penup()
    t.goforward(300/divisions)
    t.turnright(angle)
t.penup()
t.goforward(120)
t.turnright(360)

t.display()

Example Turtle

Binder

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

SSSsnake-0.0.9.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SSSsnake-0.0.9-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file SSSsnake-0.0.9.tar.gz.

File metadata

  • Download URL: SSSsnake-0.0.9.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for SSSsnake-0.0.9.tar.gz
Algorithm Hash digest
SHA256 3b2530b773d5f4df0461b7d3f53206725b8f426610605a9574fbb22c6a991fcf
MD5 4937ae19572ccc0f4cfd73cd1b940cbd
BLAKE2b-256 621688d4f25fdb526dbd546377ae9959e105737734f18f6fd11f5838afd8beb0

See more details on using hashes here.

File details

Details for the file SSSsnake-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: SSSsnake-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for SSSsnake-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e8a8c8d708d6055f93569e0b1a1b6260e18c94b4111e1334abedae3590e1b6f9
MD5 553f0ab7fb0533c64aadaedfcc0adde6
BLAKE2b-256 b5657e1547f6dbff5b09814471ac1a8e7432b567e55844bf0e09d8e6fdf39fbe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page