
![[IGCS] For-loop with tutle](https://cf.quizizz.com/img/presentation/default-img/presentation_title_img-1_idea.jpg?w=200&h=200)
[IGCS] For-loop with tutle
Presentation
•
Social Studies, Computers
•
9th Grade
•
Practice Problem
•
Hard
Andy tsui
Used 6+ times
FREE Resource
11 Slides • 2 Questions
1
[IGCS] For-loop with tutle

2
Introducing Turtle graphics
In REPL.it, start a new "Python with Turtle" project
Name it with "for-loop-with-turtle"
On the first two line, do:
3
Enter the following in your new REPL
import turtle
t = turtle.Turtle()
4
Run, and on the command console, try:
t.forward(50)
t.left(50)
Note what are they doing? and can you guess how to go backward and rotate right?
5
Drawing regular shapes
Try to draw a square
6
Fill in the Blanks
For drawing a square, How many time we need to repeat:
t.forward(50)
t.right(50)
Type answer...
7
Now try to draw the square with For-loop
8
Multiple Choice
Now we try to draw equilateral triangle, we need to repeat 3 times the following:
t.forward(50)
t.right([X])
What is X?
60
120
30
150
9
120 is the exterior angle
Can you recall the formula for it?
10
Exterior angle of n-side polygon
ext_angle = 360 / n
11
Practice time, using for loops to:
Draw a Pentagon of each side 20 unit long
Draw a Hexagon of 20 unit long
Draw an Octagon of 20 unit long
Draw a Decagon of 20 unit long
12
Finding the pattern
In a regular polygon:
for i in range (n):
⠀t.forward(20)
⠀t.right(?)
13
Summary
For loop is for counting and the counter can be used as a variable
It is usually not advisable to change the counter value inside the loop
[IGCS] For-loop with tutle

Show answer
Auto Play
Slide 1 / 13
SLIDE
Similar Resources on Wayground
9 questions
Revolutions
Presentation
•
9th Grade
9 questions
Reading Strategies
Presentation
•
6th - 8th Grade
10 questions
Context Clues
Presentation
•
9th Grade
8 questions
Jazz Music US History
Presentation
•
9th Grade
11 questions
Scientific Method
Presentation
•
9th Grade
10 questions
Cybersecurity
Presentation
•
9th Grade
10 questions
Trắc nghiệm giữa kỳ 2 Tin học 9
Presentation
•
9th Grade
9 questions
January 6, 2021 Capitol Protest Rally March to Save America
Presentation
•
9th Grade
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade
Discover more resources for Social Studies
10 questions
Exploring the Age of Exploration: Key Events and Figures
Interactive video
•
6th - 10th Grade
10 questions
Debating the Legacy of Christopher Columbus
Interactive video
•
6th - 10th Grade
27 questions
World Geography - Q1 9week Test
Quiz
•
9th Grade
25 questions
Gilded Age Gallery Walk
Presentation
•
9th - 12th Grade
30 questions
The Americas Review
Quiz
•
9th Grade
10 questions
Exploring the 13 Colonies Regions
Interactive video
•
6th - 10th Grade
23 questions
USHC 6 FDR and The New Deal Programs
Quiz
•
9th - 12th Grade
19 questions
Spanish American War
Presentation
•
8th - 12th Grade