Quick actions

cmd+k|ctrl+k

Navigation

Languages

Printing Patterns

Snippet info

Language

Python

Visibility

public

Author

alokhegde

Created

2020-10-05T09:06:22Z

Updated

2020-10-05T09:06:22Z

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 image in picture:
    for pixel in image:
        if(pixel):
            print('*',end="")
        else:
            print('',end="")
    print('')
INFO