Quick actions

cmd+k|ctrl+k

Navigation

Languages

christmas-tree

Snippet info

Language

Python

Visibility

public

Author

be11amer

Created

2025-08-23T16:10:34.968728Z

Updated

2025-08-23T16:19:47.635135Z

picture = [
    [0,0,0,1,0,0,0],
    [0,0,1,1,1,0,0],
    [0,1,1,1,1,1,0],
    [1,1,1,1,1,1,1],
    [0,0,0,1,0,0,0],
    [0,0,0,1,0,0,0]
    ]
for row in picture:
    for pixel in row:
        if pixel == 1:
            print('*', end=' ')
        else:
            print(' ', end=' ')
    print('')
INFO