Skip to content
CCC Python Course

Grid basics

Stage
3
Module
M3.7
Lessons
1

In this module

  • Read and store a rectangular grid of characters.
  • Use row and column indices to access and update grid cells.
  • Iterate over rows and columns with nested loops.
  • Apply grid basics to search and count features in a two-dimensional space.

Before this module

Lessons

  1. 1Grid basics

Practice

Try these on the judge. Each link opens the problem on WMOJ.

  1. 2021 S1
    Crazy Fencing (opens on WMOJ in a new tab) WMOJ

    Sum a property across a 2D layout of shapes, row by row.

  2. 2023 J4
    Trianglane (opens on WMOJ in a new tab) WMOJ(same problem as 2023 S1)

    Count features across a triangular grid pattern.