Menu

Using Iteration (For Loops) - Code Quiz

1. Which shape does this code draw?

import turtle for i in range(6): turtle.forward(100) turtle.right(60)
A hexagon
An octagon
A triangle
A pentagon

2. After the loop has finished, what is the total number of degrees the turtle has turned?

import turtle for i in range(5): turtle.forward(100) turtle.right(72)
72
100
360
5

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic