Write a program that will draw a square. It must use a fixed loop.
from turtle import * screen = getscreen() tom = Turtle() for counter in range(4): tom.forward(100) tom.right(90)
Fill the square with a colour.
Write a program that will draw a pentagon. It must use a fixed loop.
from turtle import * screen = getscreen() tom = Turtle() for counter in range(5): tom.forward(100) tom.left(??)
Fill the pentagon with a colour.
Write a program that will draw an octagon. It must use a fixed loop.
from turtle import * screen = getscreen() tom = Turtle() for counter in range(??): tom.forward(??) tom.left(??)
Fill the octagon with a colour.
Write a program that will draw a circle. It must use a fixed loop.
You will need lots of turns to make it appear smooth.
Fill the circle with a colour.
Write a program that will draw a rectangle. It must use a fixed loop.
You will need two forward commands inside the loop.
from turtle import * screen = getscreen() tom = Turtle() for counter in range(??): tom.forward(??) tom.right(90) tom.forward(??) tom.right(90)
Fill the rectangle with a colour.