from turtle import *
speed(0)
bgcolor('black')
color('grey')
#fillcolor('white')
begin_fill()
rt(90)
fd(200)
lt(90)
fd(4)
lt(90)
fd(360)
lt(90)
fd(4)
lt(90)
fd(160)
end_fill()
lt(90)
fd(4)
def japan():
color('white')
begin_fill()
fd(250)
lt(90)
fd(160)
lt(90)
fd(250)
lt(90)
fd(160)
end_fill()
japan()
penup()
lt(125)
fd(110)
rt(90)
pendown()
color('red')
begin_fill()
circle(40)
end_fill()
hideturtle()
penup()
lt(160)
fd(150)
pendown()
color('white')
write('Japan Flag',font=('arial',30,'normal'))
done()