Turtle Challenge Four
Open tu3 and File, Save As, tu4
Can you write the code for one of these shapes?
Vocabulary brackets parentheses or round brackets ( ) are the most common, square brackets [ ], and curly brackets { }. Always close brackets, always use the same type at beginning and end.
If you are not sure what angle to turn on any regular shape divide 360 by the number of sides the shape has.
For example 360 divided by 3 = 120. So turn right of left 120 degrees when coding a triangle.
You may need some of these codes to fill a shape in
t.begin_fill() #round brackets
t.circle(40,360,8) #Radius 40, 360 degrees, 8 sides (octagon)
t.end_fill()
t.begin_fill()
for i in range(4): #Repeats indented code 4 times
t.fd(60)
t.rt(90)
t.end_fill()
Screenshot
For more clues to fix your code DEBUG