import turtle as t

def rectangle(horizontal, vertical, color):
    t.pendown()
    t.pensize(1)
    t.color(color)
    t.begin_fill()
    for counter in range(2):
        t.forward(horizontal)
        t.right(90)
        t.forward(vertical)
        t.right(90)
    t.end_fill()
    t.penup()

def star(length, points, color):
    sumangle = ((points*2)-2) * 180
    oneangle = sumangle/points
    smallangle = oneangle/3.5
    bigangle = oneangle - smallangle
    t.color(color)
    t.pendown()
    t.begin_fill()
    t.penup()
    for counter in range(points):
        t.forward(length)
        t.left(smallangle)
        t.forward(length)
        t.left(bigangle)
    t.end_fill()

t.penup()

gotoy = 222

t.speed(0)
t.setup(988,520)
t.goto(494,260)
t.pendown()

for counter in range(7):
    t.setheading(-90)
    rectangle(40,988,'#B22234')
    t.setheading(-90)
    t.forward(80)

t.penup()

t.setheading(0)
t.goto(-494,260)
t.pendown()

rectangle(494,280,'#3C3B6E')
t.goto(-474,245)
for counter in range(4):
    for counter in range(6):
        star(9,5,'white')
        t.setheading(0)
        t.forward(84)
        t.penup()
    t.goto(-434,gotoy)
    gotoy = gotoy - 28
    t.pendown()
    for counter in range(5):
        star(9,5,'white')
        t.setheading(0)
        t.forward(84)
    t.goto(-476,gotoy)
    gotoy = gotoy - 28

for counter in range(6):
        star(9,5,'white')
        t.setheading(0)
        t.forward(84)
        t.penup()

t.hideturtle()

[(32, 'turtle.penup', 't.penup', True, 'import turtle as t\n'), (36, 'turtle.speed', 't.speed', True, 'import turtle as t\n'), (37, 'turtle.setup', 't.setup', True, 'import turtle as t\n'), (38, 'turtle.goto', 't.goto', True, 'import turtle as t\n'), (39, 'turtle.pendown', 't.pendown', True, 'import turtle as t\n'), (47, 'turtle.penup', 't.penup', True, 'import turtle as t\n'), (49, 'turtle.setheading', 't.setheading', True, 'import turtle as t\n'), (50, 'turtle.goto', 't.goto', True, 'import turtle as t\n'), (51, 'turtle.pendown', 't.pendown', True, 'import turtle as t\n'), (54, 'turtle.goto', 't.goto', True, 'import turtle as t\n'), (77, 'turtle.hideturtle', 't.hideturtle', True, 'import turtle as t\n'), (4, 'turtle.pendown', 't.pendown', True, 'import turtle as t\n'), (5, 'turtle.pensize', 't.pensize', True, 'import turtle as t\n'), (6, 'turtle.color', 't.color', True, 'import turtle as t\n'), (7, 'turtle.begin_fill', 't.begin_fill', True, 'import turtle as t\n'), (13, 'turtle.end_fill', 't.end_fill', True, 'import turtle as t\n'), (14, 'turtle.penup', 't.penup', True, 'import turtle as t\n'), (21, 'turtle.color', 't.color', True, 'import turtle as t\n'), (22, 'turtle.pendown', 't.pendown', True, 'import turtle as t\n'), (23, 'turtle.begin_fill', 't.begin_fill', True, 'import turtle as t\n'), (24, 'turtle.penup', 't.penup', True, 'import turtle as t\n'), (30, 'turtle.end_fill', 't.end_fill', True, 'import turtle as t\n'), (42, 'turtle.setheading', 't.setheading', True, 'import turtle as t\n'), (44, 'turtle.setheading', 't.setheading', True, 'import turtle as t\n'), (45, 'turtle.forward', 't.forward', True, 'import turtle as t\n'), (61, 'turtle.goto', 't.goto', True, 'import turtle as t\n'), (63, 'turtle.pendown', 't.pendown', True, 'import turtle as t\n'), (68, 'turtle.goto', 't.goto', True, 'import turtle as t\n'), (73, 'turtle.setheading', 't.setheading', True, 'import turtle as t\n'), (74, 'turtle.forward', 't.forward', True, 'import turtle as t\n'), (75, 'turtle.penup', 't.penup', True, 'import turtle as t\n'), (9, 'turtle.forward', 't.forward', True, 'import turtle as t\n'), (10, 'turtle.right', 't.right', True, 'import turtle as t\n'), (11, 'turtle.forward', 't.forward', True, 'import turtle as t\n'), (12, 'turtle.right', 't.right', True, 'import turtle as t\n'), (26, 'turtle.forward', 't.forward', True, 'import turtle as t\n'), (27, 'turtle.left', 't.left', True, 'import turtle as t\n'), (28, 'turtle.forward', 't.forward', True, 'import turtle as t\n'), (29, 'turtle.left', 't.left', True, 'import turtle as t\n'), (58, 'turtle.setheading', 't.setheading', True, 'import turtle as t\n'), (59, 'turtle.forward', 't.forward', True, 'import turtle as t\n'), (60, 'turtle.penup', 't.penup', True, 'import turtle as t\n'), (66, 'turtle.setheading', 't.setheading', True, 'import turtle as t\n'), (67, 'turtle.forward', 't.forward', True, 'import turtle as t\n')]