Python Turtle – Sequence

Looking at the following code can you explain the purpose of each Python Turtle instruction:

  • myPen.color(“red”)
  • myPen.forward(100)
  • myPen.right(90)
  • myPen.left(45)
  • myPen.penup()
  • myPen.pendown()
  • myPen.goto(0,0)

X and Y coordinates? Quadrant?

Check the above picture. Can you state three facts about X and Y coordinates and about quadrants?

The canvas we are drawing on (using Python Turtle) is 400 pixels wide by 400 pixels high.
Look at the canvas below to understand how (x,y) coordinates work:

Python Code

Challenge #1: Sequencing

Writing a program that consists of a linear list of instructions written in a specific order is called sequencing.

Your Challenge

Use all of the instructions mentionned above to complete a drawing of your choice.

Challenge #2: Iteration

By using a loop you can repeat a set of instructions many times. This is called iteration.
Check the following challenge to create complex drawing using iteration.

Tagged with: ,
10 comments on “Python Turtle – Sequence
  1. Thomas says:

    My code: spaceship

2 Pings/Trackbacks for "Python Turtle – Sequence"
  1. […] our previous challenge, we looked at using sequencing to write a program using Python Turtle to complete a […]

  2. […] Python Turtle: Sequencing […]