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()

[((716, 725), 'turtle.penup', 't.penup', ([], {}), '()\n', (723, 725), True, 'import turtle as t\n'), ((744, 754), 'turtle.speed', 't.speed', (['(0)'], {}), '(0)\n', (751, 754), True, 'import turtle as t\n'), ((756, 773), 'turtle.setup', 't.setup', (['(988)', '(520)'], {}), '(988, 520)\n', (763, 773), True, 'import turtle as t\n'), ((774, 790), 'turtle.goto', 't.goto', (['(494)', '(260)'], {}), '(494, 260)\n', (780, 790), True, 'import turtle as t\n'), ((791, 802), 'turtle.pendown', 't.pendown', ([], {}), '()\n', (800, 802), True, 'import turtle as t\n'), ((932, 941), 'turtle.penup', 't.penup', ([], {}), '()\n', (939, 941), True, 'import turtle as t\n'), ((945, 960), 'turtle.setheading', 't.setheading', (['(0)'], {}), '(0)\n', (957, 960), True, 'import turtle as t\n'), ((962, 979), 'turtle.goto', 't.goto', (['(-494)', '(260)'], {}), '(-494, 260)\n', (968, 979), True, 'import turtle as t\n'), ((980, 991), 'turtle.pendown', 't.pendown', ([], {}), '()\n', (989, 991), True, 'import turtle as t\n'), ((1025, 1042), 'turtle.goto', 't.goto', (['(-474)', '(245)'], {}), '(-474, 245)\n', (1031, 1042), True, 'import turtle as t\n'), ((1535, 1549), 'turtle.hideturtle', 't.hideturtle', ([], {}), '()\n', (1547, 1549), True, 'import turtle as t\n'), ((71, 82), 'turtle.pendown', 't.pendown', ([], {}), '()\n', (80, 82), True, 'import turtle as t\n'), ((88, 100), 'turtle.pensize', 't.pensize', (['(1)'], {}), '(1)\n', (97, 100), True, 'import turtle as t\n'), ((106, 120), 'turtle.color', 't.color', (['color'], {}), '(color)\n', (113, 120), True, 'import turtle as t\n'), ((126, 140), 'turtle.begin_fill', 't.begin_fill', ([], {}), '()\n', (138, 140), True, 'import turtle as t\n'), ((278, 290), 'turtle.end_fill', 't.end_fill', ([], {}), '()\n', (288, 290), True, 'import turtle as t\n'), ((296, 305), 'turtle.penup', 't.penup', ([], {}), '()\n', (303, 305), True, 'import turtle as t\n'), ((485, 499), 'turtle.color', 't.color', (['color'], {}), '(color)\n', (492, 499), True, 'import turtle as t\n'), ((505, 516), 'turtle.pendown', 't.pendown', ([], {}), '()\n', (514, 516), True, 'import turtle as t\n'), ((522, 536), 'turtle.begin_fill', 't.begin_fill', ([], {}), '()\n', (534, 536), True, 'import turtle as t\n'), ((542, 551), 'turtle.penup', 't.penup', ([], {}), '()\n', (549, 551), True, 'import turtle as t\n'), ((700, 712), 'turtle.end_fill', 't.end_fill', ([], {}), '()\n', (710, 712), True, 'import turtle as t\n'), ((836, 853), 'turtle.setheading', 't.setheading', (['(-90)'], {}), '(-90)\n', (848, 853), True, 'import turtle as t\n'), ((892, 909), 'turtle.setheading', 't.setheading', (['(-90)'], {}), '(-90)\n', (904, 909), True, 'import turtle as t\n'), ((915, 928), 'turtle.forward', 't.forward', (['(80)'], {}), '(80)\n', (924, 928), True, 'import turtle as t\n'), ((1197, 1216), 'turtle.goto', 't.goto', (['(-434)', 'gotoy'], {}), '(-434, gotoy)\n', (1203, 1216), True, 'import turtle as t\n'), ((1245, 1256), 'turtle.pendown', 't.pendown', ([], {}), '()\n', (1254, 1256), True, 'import turtle as t\n'), ((1367, 1386), 'turtle.goto', 't.goto', (['(-476)', 'gotoy'], {}), '(-476, gotoy)\n', (1373, 1386), True, 'import turtle as t\n'), ((1474, 1489), 'turtle.setheading', 't.setheading', (['(0)'], {}), '(0)\n', (1486, 1489), True, 'import turtle as t\n'), ((1499, 1512), 'turtle.forward', 't.forward', (['(84)'], {}), '(84)\n', (1508, 1512), True, 'import turtle as t\n'), ((1522, 1531), 'turtle.penup', 't.penup', ([], {}), '()\n', (1529, 1531), True, 'import turtle as t\n'), ((180, 201), 'turtle.forward', 't.forward', (['horizontal'], {}), '(horizontal)\n', (189, 201), True, 'import turtle as t\n'), ((211, 222), 'turtle.right', 't.right', (['(90)'], {}), '(90)\n', (218, 222), True, 'import turtle as t\n'), ((232, 251), 'turtle.forward', 't.forward', (['vertical'], {}), '(vertical)\n', (241, 251), True, 'import turtle as t\n'), ((261, 272), 'turtle.right', 't.right', (['(90)'], {}), '(90)\n', (268, 272), True, 'import turtle as t\n'), ((596, 613), 'turtle.forward', 't.forward', (['length'], {}), '(length)\n', (605, 613), True, 'import turtle as t\n'), ((623, 641), 'turtle.left', 't.left', (['smallangle'], {}), '(smallangle)\n', (629, 641), True, 'import turtle as t\n'), ((651, 668), 'turtle.forward', 't.forward', (['length'], {}), '(length)\n', (660, 668), True, 'import turtle as t\n'), ((678, 694), 'turtle.left', 't.left', (['bigangle'], {}), '(bigangle)\n', (684, 694), True, 'import turtle as t\n'), ((1134, 1149), 'turtle.setheading', 't.setheading', (['(0)'], {}), '(0)\n', (1146, 1149), True, 'import turtle as t\n'), ((1159, 1172), 'turtle.forward', 't.forward', (['(84)'], {}), '(84)\n', (1168, 1172), True, 'import turtle as t\n'), ((1182, 1191), 'turtle.penup', 't.penup', ([], {}), '()\n', (1189, 1191), True, 'import turtle as t\n'), ((1323, 1338), 'turtle.setheading', 't.setheading', (['(0)'], {}), '(0)\n', (1335, 1338), True, 'import turtle as t\n'), ((1348, 1361), 'turtle.forward', 't.forward', (['(84)'], {}), '(84)\n', (1357, 1361), True, 'import turtle as t\n')]