Mosaic matrix: Difference between revisions

(→‎{{header|Haskell}}: Added a Haskell version)
Line 529:
<lang python>'''Mosaic grid'''
 
 
# mosaic :: Int -> [[Int]]
def mosaic(n):
'''Grid of alternating ones and zeroes,
Line 572 ⟶ 573:
' '.join([str(x) for x in y]) for y in rows
])
 
 
# MAIN ---
9,655

edits