COMPUTER SCIENCE CAFÉ
  • WORKBOOKS
  • BLOCKY GAMES
  • GCSE
    • CAMBRIDGE GCSE
  • IB
  • A LEVEL
  • LEARN TO CODE
  • ROBOTICS ENGINEERING
  • MORE
    • CLASS PROJECTS
    • Classroom Discussions
    • Useful Links
    • SUBSCRIBE
    • ABOUT US
    • CONTACT US
    • PRIVACY POLICY
  • WORKBOOKS
  • BLOCKY GAMES
  • GCSE
    • CAMBRIDGE GCSE
  • IB
  • A LEVEL
  • LEARN TO CODE
  • ROBOTICS ENGINEERING
  • MORE
    • CLASS PROJECTS
    • Classroom Discussions
    • Useful Links
    • SUBSCRIBE
    • ABOUT US
    • CONTACT US
    • PRIVACY POLICY
CODING CHALLENGES | TURTLE DRAWING
Enjoy the journey of learning to code, explore and be creative
ON THIS PAGE
CHALLENGE 1 | USE A FOR LOOP TO DRAW  SQUARE
CHALLENGE 2 | USE A FOR LOOP TO DRAW A STAR
CHALLENGE 3 | USE A WHOLE LOOP TO DRAW A DANCING LINE
CHALLENGE 4 | USE FUNCTIONS AND DRAW A SNOWFLAKE
CHALLENGE 5 | CREATE A LANDSCAPE DRAWING
CHALLENGE 6 | DRAW THE FIBONACCI SQUARES
CHALLENGE 7 | CREATE A RETRO IMAGE
Picture
ALSO IN THIS TOPIC
LEVEL 1 | GETTING STARTED
 LEVEL 2 | VARIABLES AND USER INTERACTION

LEVEL 3 | DATATYPES AND OPERATORS
 LEVEL 4 | IF STATEMENTS
 LEVEL 5 | LOOPS
 ​LEVEL 6 | ARRAYS / LISTS
LEVEL 7 | FUNCTIONS
 ​LEVEL 8 | ALGORITHM DESIGN
LEVEL 9 | OOP
 ​LEVEL 10 | EXTERNAL DATA HANDLING
YOU ARE HERE | TURTLE CHALLENGES
DEBUGGING AND TRACING​

CHALLENGE SOLUTIONS
Picture
SUBSCRIBE FOR SAMPLE SOLUTIONS
Picture
CHALLENGE 1 | USE A FOR LOOP TO DRAW  SQUARE
Use the turtle module (or equivalent) to:
1: Draw a square
2: Use 1 FOR loop to complete this task
Picture
CHALLENGE 2 | USE A FOR LOOP TO DRAW A STAR
Use the turtle module (or equivalent) to:
1: Draw a star like the on in the picture below
2: ​Try to do this using 1 FOR loop
3: Fill the star with a colour of your choice
Picture
Picture
CHALLENGE 3 | USE A WHOLE LOOP TO DRAW A DANCING LINE
​ Using Python and the Turtle graphics library, create a program that draws a continuous, dynamic pattern that appears to be "dancing" on the screen. Your program should use loops and make use of Turtle's various drawing and movement functions, such as forward, backward, right, and left. Experiment with different angles, lengths, and loop iterations to create an interesting and visually appealing pattern. Bonus points if you can incorporate colour changes or other visual enhancements to make the pattern more engaging.
Picture
CHALLENGE 4 | USE FUNCTIONS AND DRAW A SNOWFLAKE
Using Python and the Turtle graphics library (or equivalent) create:
1: A program that draws a Koch snowflake on the screen.
2: The Koch snowflake is a fractal curve, and for this challenge, you should draw a snowflake with three iterations.
3: Each side of the initial equilateral triangle should be 100 units in length.
​4: Use loops to avoid repetitive code and make your solution more efficient.
Picture
CHALLENGE 5 | CREATE A LANDSCAPE DRAWING
The image below was made using Python Turtle
1: Create your own landscape image
2: Demonstrate good use of loops within your code
Extension task:
Add random elements to your drawing so it does not draw the same each time you run the program.
Picture
Picture
CHALLENGE 6 | DRAW THE FIBONACCI SQUARES
The fibonacci sequence of numbers can be used to produce the Fibonacci spiral.
Use the turtle module (or equivalent) to:
1: Create the Fibonacci squares to the X number
2: Create the spiral with in the squares
3: When you have create the squares and spiral add some colour and be creative

.
Picture
CHALLENGE 7 | CREATE A RETRO IMAGE
The video below shows an image created around the theme of 8 bit retro.
1: Create your own 8 bit image
2: The image should be made up of a sequence of squares
3: You should demonstrate good use of loops and functions
TIP: Google 8 bit images and get some idea's
  • VIDEO
  • CODE
<
>

    
Picture
NAVIGATION
LEVEL 1 | GETTING STARTED
LEVEL 2 | VARIABLES AND USER INTERACTION
LEVEL 3 | DATATYPES AND OPERATORS
LEVEL 4 | IF STATEMENTS
LEVEL 5 | LOOPS
​LEVEL 6 | ARRAYS / LISTS
LEVEL 7 | FUNCTIONS
LEVEL 8 | ALGORITHM DESIGN
LEVEL 9 | OOP
LEVEL 10 | EXTERNAL DATA HANDLING
TURTLE CHALLENGES
DEBUGGING AND TRACING​
CHALLENGE SOLUTIONS
Picture
SUGGESTIONS
We would love to hear from you
SUBSCRIBE 
To enjoy more benefits
We hope you find this site useful. If you notice any errors or would like to contribute material then please contact us.