Jump to content

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,659

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.