Monday, March 16, 2020

Phase 1




# In this phase we draw one knob using turtle graphics:

import turtle
t=turtle.Turtle()

t.color('red', 'yellow')

t.begin_fill()
t.lt(90)
t.fd(60)
t.lt(90)
t.fd(60)
t.rt(90)
t.fd(60)
t.rt(90)
t.fd(180)
t.rt(90)
t.fd(60)
t.rt(90)
t.fd(60)
t.lt(90)
t.fd(60)
t.rt(90)
t.fd(62)
t.end_fill()

turtle.done()



No comments:

Post a Comment