Python Shapes using Turtle

Learning Objectives

In this challenge we are going to use x and y coordinates to draw shapes on the screen. We will be using the turtle library to draw on the screen.

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:

Challenge #1

Look and test the following code used to draw a “+” shape.

Your task is to tweak this code to draw the following shapes:
PythonShapes

Challenge #2

Look and test the following code used to draw a square using the for loop.

Your task is to tweak this code to draw the following shapes:
PythonShapes2

Extension


Once you have completed all the shapes above you can try this more advanced challenge.

Share Button
Posted in Computer Science, Python - Beginner, Python Challenges Tagged with: , ,
2 comments on “Python Shapes using Turtle

Our Latest Book

Follow this blog