Unit: Unit 3: Loops • Interactive Practice
Interactive Python programming tutorial and practice in your browser.
# Generate a 2D coordinate grid (rows 1-3, columns 1-3)
for row in range(1, 4):
for col in range(1, 4):
print("(", row, ",", col, ")", sep="", end=" ")
print() # Print newline after inner loop completes one full row
print("Grid generation finished.")