creating Bird 🐦 using turtle python apni programming
import turtle as t
t.penup()
t.bgcolor("gold")
t.color("black")
t.begin_fill()
t.goto(-100,-50)
t.pendown()
t.pensize(10)
t.right(90)
for i in range(10):
t.left(1)
t.forward(10)
for i in range(10):
t.left(5)
t.forward(10)
t.right(170)
for i in range(13):
t.left(7)
t.forward(10)
t.right(150)
for i in range(12):
t.right(1)
t.forward(10)
t.right(5)
for i in range(20):
t.right(5)
t.forward(10)
for i in range(10):
t.left(7)
t.forward(20)
for i in range(13):
t.left(3)
t.forward(10)
for i in range(10):
t.right(7)
t.forward(10)
t.right(15)
t.forward(50)
t.left(160)
t.forward(60)
t.right(45)
for i in range(20):
t.left(7)
t.forward(10)
for i in range(10):
t.right(5)
t.forward(10)
t.right(120)
for i in range(25):
t.left(1)
t.forward(10)
t.left(120)
for i in range(15):
t.left(3)
t.forward(20)
t.right(60)
for i in range(5):
t.left(6.5)
t.forward(20)
t.forward(10)
t.end_fill()
t.pencolor("white")
t.penup()
t.goto(200,220)
t.pendown()
t.circle((10))
t.hideturtle()
Comments
Post a Comment