Your question is Chessboard Squares Count. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
How many squares are there on a chessboard?
Generalize the question for an n x n chessboard, counting every square size, not only the individual cells. Implement count_squares(n), which accepts a positive integer and returns the total number of axis-aligned squares.
For example, a standard 8 x 8 chessboard contains 204 squares.
def count_squares(n):