Our First GUI

Run Settings
LanguagePython
Language Version
Run Command
# Exercise! '''Display the image below to the right hand side where the 0 is going to be ' ', and the 1 is going to be '*'. This will reveal an image!''' 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] ] # fill = '$' # empty = ' ' for image in picture: for pixel in image: print('*' if pixel else ' ', end='') print() # Used to make a new line after every row. ''' What is good code? 1. Clean - using the best/standard practices of using spaces for clean code. 2. Readability - being able to read your own code and it being easy to understand. 3. Predictability - having code that makes sense and does one thing well. 4. DRY - Do not repeat yourself! Make code reusable.'''
Editor Settings
Theme
Key bindings
Full width
Lines