Neural Sync Active
Synthetic 4 · Serpentine Number Blocks
Registry Synced
Synthetic 4 · Serpentine Number Blocks
89 words
1 min read
2026-08-02
Serpentine Number Blocks
Write
serpentine_blocks(n) returning an n × n list. Fill consecutive integers starting at 1. Odd-numbered rows go left-to-right; even-numbered rows reverse their block.Template Code
pythondef serpentine_blocks(n): pass
Public Tests
is_equal(serpentine_blocks(1), 1)
is_equal(serpentine_blocks(3), [1, 2, 3], [6, 5, 4], [7, 8, 9](/viewer?path=1, 2, 3], [6, 5, 4], [7, 8, 9))
is_equal(serpentine_blocks(0), [])
MCQ
3 Unit Assessment
Reference-only archive item
The completed export preserved the prompt as an image but not a reusable answer key. The reconstruction below is for study, not scoring.
Study reconstruction
def serpentine_blocks(n):
grid = []
for row in range(n):
block = list(range(row * n + 1, (row + 1) * n + 1))
if row % 2 == 1:
block.reverse()
grid.append(block)
return grid