Quick actions

cmd+k|ctrl+k

Navigation

Languages

#smile incomplete

Snippet info

Language

Python

Visibility

public

Author

namargup

Created

2026-06-23T13:32:31.128495Z

Updated

2026-06-23T13:32:31.128495Z

picture = [
    [0,0,0,0,0,0,0],
    [0,1,1,1,1,1,0],
    [0,1,2,1,2,1,0],
    [0,1,3,1,3,1,0],
    [0,1,3,3,3,1,0],
    [0,1,1,1,1,1,0]
    ]
    
for image in picture:
    for pixel in image:
        if pixel == 1:
            print('🟨', end= ' ')
        elif pixel == 0:
             print('🟦', end= ' ' )
        if pixel == 2:
            print('⚫️', end= ' ')
        elif pixel == 3:
            print('🟥', end= ' ')
    print(" ")
             
                       
INFO