from turtle import *
title("flag")
speed(5)
color("black")
pensize(3)
left(90)
fd(200)
backward(400)
fd(400)
right(90)
pensize(2)
color ("orange")
begin_fill ()
fd(200)
right(90)
forward(40)
right(90)
fd(200)
end_fill ()

color("white")
begin_fill ()
backward (200)
left(90)
fd(40)
right(90)
fd(200)
end_fill ()

color("green")
begin_fill ()
backward (200)
left(90)
fd(40)
right(90)
fd(200)
end_fill ()

right(90)
fd(40)
right(90)
fd(100)
color("black","white")
begin_fill ()
circle(20)
end_fill ()

color('orange')
up()
backward(100)
right(90)
fd(320)
left(90)
down()
begin_fill()
fd(100)
right(90)
fd(30)
right(90)
fd(200)
right(90)
fd(30)
right(90)
fd(100)
end_fill()

color('white')
fd(100)
right(90)
fd(30)
left(90)
fd(30)
right(90)
begin_fill()
fd(30)
right(90)
fd(260)
right(90)
fd(30)
right(90)
fd(260)
end_fill()

color('green')
right(90)
fd(30)
left(90)
fd(30)
begin_fill()
right(90)
fd(30)
right(90)
fd(320)
right(90)
fd(30)
right(90)
fd(300)
end_fill()

up()
left(90)
fd(400)
left(90)
fd(21)
down()
color('black')
fd(39)
right(180)
fd(20)
left(90)
fd(20)
right(180)
fd(40)
right(180)
fd(20)
left(45)
fd(20)
left(180)
fd(40)
left(180)
fd(20)
right(90)
fd(20)
right(180)
fd(40)
hideturtle ()

from turtle import *
title("flag")
speed(5)
color("black")
pensize(3)
left(90)
fd(200)
backward(400)
fd(400)
right(90)
pensize(2)
color ("orange")
begin_fill ()
fd(200)
right(90)
forward(40)
right(90)
fd(200)
end_fill ()

color("white")
begin_fill ()
backward (200)
left(90)
fd(40)
right(90)
fd(200)
end_fill ()

color("green")
begin_fill ()
backward (200)
left(90)
fd(40)
right(90)
fd(200)
end_fill ()

right(90)
fd(40)
right(90)
fd(100)
color("black","white")
begin_fill ()
circle(20)
end_fill ()

color('orange')
up()
backward(100)
right(90)
fd(320)
left(90)
down()
begin_fill()
fd(100)
right(90)
fd(30)
right(90)
fd(200)
right(90)
fd(30)
right(90)
fd(100)
end_fill()

color('white')
fd(100)
right(90)
fd(30)
left(90)
fd(30)
right(90)
begin_fill()
fd(30)
right(90)
fd(260)
right(90)
fd(30)
right(90)
fd(260)
end_fill()

color('green')
right(90)
fd(30)
left(90)
fd(30)
begin_fill()
right(90)
fd(30)
right(90)
fd(320)
right(90)
fd(30)
right(90)
fd(300)
end_fill()

up()
left(90)
fd(400)
left(90)
fd(21)
down()
color('black')
fd(39)
right(180)
fd(20)
left(90)
fd(20)
right(180)
fd(40)
right(180)
fd(20)
left(45)
fd(20)
left(180)
fd(40)
left(180)
fd(20)
right(90)
fd(20)
right(180)
fd(40)
hideturtle ()
