Home > IB Computer Science 2018 > Turtle graphics in Python

Turtle graphics in Python

Here is a sample program to get you going:

import turtle
scr = turtle.Screen()
t = turtle.Turtle()
t.forward(100)
t.left(90)
t.forward(50)
turtle.done()

Here is the documentation from Python.org:

https://docs.python.org/2/library/turtle.html

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s