Quick actions

cmd+k|ctrl+k

Navigation

Languages

Pseudo GUI

Snippet info

Language

Python

Visibility

public

Author

shigeotoga

Created

2026-08-06T04:15:05.529682Z

Updated

2026-08-06T04:17:55.762549Z

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 line in picture:
    for pixel in line:
        if pixel: # Using truthy principle
            print("#", end="")
        else:
            print(" ", end="")
    print() # Start printing in new line, for next line of picture
INFO