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)
  • myPen.circle(50)

X and Y coordinates? Quadrant?


xy-coordinates
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.
PythonTurtleChallenge

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.

Did you like this challenge?

Click on a star to rate it!

Average rating 2.4 / 5. Vote count: 23

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!

Tagged with: ,