def common (grid) :
For y in range (len (grid [0])) :
For x in the range (len (grid) - 1) :
Print (grid [x] [y], end=' ')
Print (grid [1] [y])
Print (grid [x] [y])
The grid=[['. ', '. ', '. ', '. ', '. ', '. '],
[', 'o', 'o', '. ', '. ', '. '],
[' o ', 'o', 'o', 'o', '. ', '. '],
[' o ', 'o', 'o', 'o', 'o', '. '],
[', 'o', 'o', 'o', 'o', 'o'],
[' o ', 'o', 'o', 'o', 'o', '. '],
[' o ', 'o', 'o', 'o', '. ', '. '],
[', 'o', 'o', '. ', '. ', '. '],
[', '. ', '. ', '. ', '. ', '. ']]
Common (grid)
Output the following results:
.. Oo, oo..
. Ooooooo.
. Ooooooo.
. Ooooo..
. Ooo...
. o....
. # here multiple output line