Exerpad
Exercise 11 · Chapter: ListsRequired+50 XP

Build a Grid

A nested list is a list that contains other lists. You can use them to represent grids!

Read two numbers: rows and cols. Build a grid (a list of lists) where each cell contains ".". Then print each row by joining its items with spaces.

Example:

Input:

2
3

Output:

. . .
. . .
Need a hint?
3 available · costs 5 XP each
python

Output
Run your code to see the output here.