
![[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
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
House on Mango Street Theme
Presentation
•
9th Grade
11 questions
Translation
Presentation
•
9th - 10th Grade
14 questions
7.5 End of Cold War
Presentation
•
9th Grade
10 questions
Questioning Scenarios
Presentation
•
9th Grade
11 questions
Possessive adjectives
Presentation
•
9th Grade
10 questions
TLE 9 CSS Q1 WEEK 1 DAY 2
Presentation
•
9th Grade
7 questions
Realidades 1 2a Listening Activity 6
Presentation
•
9th Grade
8 questions
The Feudal System
Presentation
•
KG
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade