Easiest way to look in columns is to do transposing of the grid and search second time in rows. You can transpose list by doing
trasposed = list(zip(*grid))
You can keep count in the for loop by using enumerate on lines/colums.
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852