NEW
Font size
WorksheetsExploring For Loops with Turtle
Total questions: 10
Worksheet time: 5mins
What is the main purpose of a "for loop" in Python?
To repeat a set of instructions multiple times
To draw only circles
To change the color of the turtle
To stop the program
Which command makes the turtle move forward by 100 steps?
`turtle.backward(100)`
`turtle.left(100)`
`turtle.forward(100)`
`turtle.right(100)`
How many times will the following loop run? ```python
for i in range(4):
turtle.forward(50)
turtle.right(90)
2
3
4
5
Which command changes the color of the turtle's pen to red?
`turtle.width(5)`
`turtle.color("red")`
`turtle.colour("red")`
`turtle.color(red)`
What does the command `turtle.penup()` do?
Lifts the pen so the turtle moves without drawing
Puts the pen down to start drawing
Changes the pen color
Increases the drawing speed
Which set of commands will draw a square using a for loop?
```python
for i in range(3):
turtle.forward(100) turtle.right(120) ```
```python
for i in range(4): turtle.forward(100)
turtle.right(90) ```
```python
for i in range(5): turtle.forward(100)
turtle.right(72) ```
```python
for i in range(6): turtle.forward(100)
turtle.right(60) ```
Which command sets the width of the turtle's pen to 5?
`turtle.color(5)`
`turtle.width(5)`
`turtle.speed(5)`
`turtle.right(5)`
How would you draw a triangle using a for loop?
Repeat 3 times: move forward and turn right 120 degrees
Repeat 4 times: move forward and turn right 90 degrees
Repeat 5 times: move forward and turn right 72 degrees
Repeat 6 times: move forward and turn right 60 degrees
What does the command `turtle.speed(10)` do?
Changes the color of the turtle
Sets the speed of the turtle to the fastest
Makes the turtle draw a circle
Lifts the pen up
Which command will make the turtle turn left by 90 degrees?
`turtle.right(90)`
`turtle.left(90)`
`turtle.backward(90)`
`turtle.turnleft(90)`
