Skip to content

mr-mccune/msTurtle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Python Turtle: Train the Drawing Robot

Student Instructions Version

Today you will use Python Turtle to draw shapes.

Step 1

Type and run this code:

import turtle

t = turtle.Turtle()

for i in range(4):
    t.forward(100)
    t.right(90)

turtle.done()

Step 2

Change the code so it draws a triangle.

Step 3

Change the code so it draws a hexagon.

Step 4

Customize your drawing by adding:

  • a color
  • a pen size
  • a speed

Step 5

Try this pattern code:

import turtle

t = turtle.Turtle()
t.speed(0)

for i in range(12):
    for j in range(4):
        t.forward(100)
        t.right(90)
    t.right(30)

turtle.done()

Step 6

Change the numbers and see what new designs you can make.

Fast Finisher Challenges

If you finish early, try these:

  • draw an octagon
  • draw a star
  • make a flower pattern
  • use a different color
  • make the pattern bigger or smaller
  • see what happens when you change the turn angle

Exit Ticket (2 minutes)

Answer on paper or out loud:

  1. What does a loop do?
  2. What shape uses 3 sides?
  3. What turn angle does a hexagon use?
  4. What happened when you changed the numbers?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages