Mosaic matrix: Difference between revisions
→Python :: Functional
(→{{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 ---
|