Turtle Challenge 5

Turtle Challenge Five
Save your work as logo5.py
Can you write the code for one of these shapes?

You may need some of these code types
p.circle(100)
p.circle(40,180)
p.pu()
p.pd()


for i in range(4):
    p.circle(200)


diff = 90
for i in range(4):
    g.fd(diff)
    g.lt(50)

    diff = diff + 1
#draw a circle with radius of 100
#draw a circle of radius 40 which only goes through #180 degrees (half circle)
#pu to lift pen up and not draw
#pd to put pen down and draw


#Repeat what is underneath 4 times


#Create a variable called diff and put 90 inside it
#Repeat all the code underneath 4 times
#Forward number in variable diff
#Left 50 degrees
#Increase diff by one

repeat code video
using variable inside repeat code video
 DEBUG 
your code if it doesn't work
Comments