0
Sorry, I'm new and not confident. This is right, yes? It seems to work but, again, other people's answers seem more complicated:
grid = [
['.', '.', '.', '.', '.', '.'],
['.', 'O', 'O', '.', '.', '.'],
['O', 'O', 'O', 'O', '.', '.'],
['O', 'O', 'O', 'O', 'O', '.'],
['.', 'O'...