Draw Bangladesh Flag using Python #bangladesh

preview_player
Показать описание
source code:

from turtle import *

speed(1)

bgcolor('blue')
hideturtle()
lt(180)
fd(150)
lt(180)

for i in range(2):
color('#006633')
begin_fill()
fd(250)
lt(90)
fd(150)
lt(90)
end_fill()

lt(90)
fd(160)
for j in range(2):
color('white')
begin_fill()
lt(90)
fd(5)
lt(90)
fd(400)
end_fill()

lt(180)
fd(110)
lt(90)
penup()
fd(120)
pendown()
color('red')
begin_fill()
circle(30)
end_fill()

penup()
rt(90)
fd(150)
rt(90)
fd(60)
pendown()
color('white')
write('Bangladesh Flag',font=('arial',16,'normal'))

done()
Рекомендации по теме