Ex
Exerpad
🔥0
0 XP
Lv.1 Beginner

French Flag

Draw the French flag as a 10x15 grid.

The French flag has three vertical stripes:

  • Left 5 columns: "blue"
  • Middle 5 columns: "white"
  • Right 5 columns: "red"

Set __grid__ to your grid to see the flag!

Don't change the print statements at the bottom.

python
grid = []
# Build a 10x15 French flag
# Left 5 cols: "blue", Middle 5: "white", Right 5: "red"


__grid__ = grid

# Don't change below this line
print(len(grid))
print(len(grid[0]))
print(grid[0][0])
print(grid[0][7])
print(grid[0][14])
Exerpad — Learn to Code with Fun!