*Originally Posted by ***toxic345**

##########

##### ---- #

## --# ---- #

## --# ---- #

## --# ---- #

## --# ---- #

##### ---- #

##########

- #### ---- #

##########

The output here should be 16, wich is the square from (1,6) to (4,9) (counting from 0)

There are spaces in the 2nd example so I'm not sure if the spaces are spaces or the hash is spaces. But anyway, go through the list one row at a time and find the location of the spaces in that row. Then check how many following rows also have spaces at the same location. Put the results in a list of lists and then check to see which one is largest, i.e. contains the greatest number of spaces. Post back with your code for further help.
The output here should be 16, wich is the square from (1,6) to (4,9) (counting from 0)

Those are filled, not empty spaces. The answer is indeed 16 for the 2nd example, and there are two that qualify. Misunderstanding the question and having no idea how to loop through a list says that you aren't paying attention to the problem or in class. Hopefully that is a helpful hint.
Tweet This+ 1 thisPost To Linkedin