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
 

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue