Question: I have a problem with this code and I don't know how to fix it to make it return as the example in bold from

I have a problem with this code and I don't know how to fix it to make it return as the example in bold

from typing import List def make_grid(w: int, h: int) -> List[List[str]]: """ Given two integers width w and height h, create a list of lists to represent a grid of the given width and height.

Return this list.

>>> make_grid(2, 3) [['(_)', '(_)'], ['(_)','(_)'], ['(_)', '(_)']] """ grid = [] for i in range(w): for j in range (h): inside = [] inside.append("(_)") grid.append(inside) return grid

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!