Quick actions

cmd+k|ctrl+k

Navigation

Languages

77 - Our First GUI

Snippet info

Language

Python

Visibility

public

Author

ciawash

Created

2024-04-09T16:13:53.964065Z

Updated

2024-04-09T17:30:34.314149Z

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