Week 6

Turtle Art Studio

Aim: Combine Turtle commands with loops to draw shapes.

New coding words

  1. shape
  2. side
  3. angle
  4. color
  5. pensize

What the coding words mean

  1. shape: A drawing made from lines, such as a square or triangle.
  2. side: One straight edge of a shape.
  3. angle: The amount the turtle turns, measured in degrees.
  4. color: Changes the colour of the turtle's drawing. Python uses the spelling color.
  5. pensize: Changes how thick or thin the drawn lines are.
Code along

Draw a square with a loop

Combine Turtle movement with a loop to draw four equal sides.

Python coding spaceReady to run
.py

Tab indents. Esc then Tab leaves the editor. Ctrl/⌘ + Enter runs your code.

Output (Shell)What your program does
Select Run my code to try this program.
Turtle drawing

Run your code to draw here.

Opening your coding space…Each activity has its own saved code.
Mini project

Shape Garden

Draw a square and a triangle using different colours and line thickness.

Python coding spaceReady to run
.py

Tab indents. Esc then Tab leaves the editor. Ctrl/⌘ + Enter runs your code.

Output (Shell)What your program does
Select Run my code to try this program.
Turtle drawing

Run your code to draw here.

Opening your coding space…Each activity has its own saved code.

Your mini-project to-do list

0 of 3 completed

Complete these activities in the mini-project editor above. After each change, select Run my code to check your program’s output or drawing.

Save your finished mini project

Select Download my work and save the file as week_6_shape_garden.py. The .py ending tells us that the file contains Python code. Keep this file as a copy of your finished program.

Debugging detective

Chi Opara, your course guide

Knowledge check

Question 1

Which loop can draw the four sides of a square?

Choose one answer
Question 2

How many degrees must the turtle turn at each corner of a triangle?

Your answers are checked in this browser and are not submitted.

How are you getting on so far?

My checklist

Finished Week 6?

This progress is saved only in this browser.