fb pixel

Drawing an X

Given a grid, you are asked to draw an X using list comprehension. Can you do it?
The filled cells need to be x and the empty ones should be o.
Output
xooox
oxoxo
ooxoo
oxoxo
xooox
 
To check your solution you need to sign in
Sign in to continue