Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

Grid Coordinates

Read two numbers: rows and cols. Build a grid where each cell contains its position as r,c (row and column, starting from 0). Print each row by joining its items with spaces.

Example:

Input:

text
2
3

Output:

text
0,0 0,1 0,2
1,0 1,1 1,2

💡 Hints

?Hint 1
🔒Hint 2
🔒Hint 3
python