×
  1. Introduction to Python Turtle Graphics.
  2. Setting up your turtle.
  3. Let's get familiar with turtle.
  4. Now is the for loop.
  5. Let's go to the while loop.
  6. If-else conditional statement.
  7. Multiple turtles at once.
  8. Review section.
  9. Advanced knowlegde about turtle.
Image drawn with Turtle.

Python Turtle Graphics

1. Introduction to Python Turtle Graphics.

Structure

  1. Chapter name.
  2. Numbers of tasks.
  3. Must watch video.
  4. Reminder.
  5. Tasks instructions.
  6. Do tasks.
  7. Complete.

SO WHAT IS A TURTLE ?

WHY LEARN TURTLE ?

There is a simple turtle program below, you can run this to have a general idea about turtle.



NOW PLEASE RUN THE PROGRAM !
from browser import document
import turtle
turtle.set_defaults(
    turtle_canvas_wrapper = document['turtle-div'])

# DO NOT DELETE ABOVE THIS LINE
######## Write your code below

name = turtle.Turtle()
name.shape("turtle")
name.color("red")
name.speed(10)
for i in range(25):
    name.circle(5*i)
    name.circle(-5*i)
    name.left(i)

# DO NOT DELETE BELOW THIS LINE
turtle.done()