Quick actions

cmd+k|ctrl+k

Navigation

Languages

GUI

Snippet info

Language

Python

Visibility

public

Author

raulciprian.tudor

Created

2026-01-04T12:02:42.701774Z

Updated

2026-01-04T12:30:49.0243Z

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 == 0:
            print(" ", end=" ")
        else:
            print("*", end=" ")
    print() # need a new line after every row
INFO