Christmas Tree

Run Settings
LanguagePython
Language Version
Run Command
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 == 0: print(' ', end='') # This end params keeps everything on the same line else: print('*', end='') print('') # At the end of each (picture) line, a newline should be started
Editor Settings
Theme
Key bindings
Full width
Lines