Created
July 21, 2018 15:44
-
-
Save ievans3024/3467896bf6d2e819417b4838f0fc0b98 to your computer and use it in GitHub Desktop.
Proving Jeremy wrong, indentation experimentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Proving Jeremy wrong, indentation experimentation""" | |
def four(): | |
# indented with 4 spaces | |
return 4 | |
def three(): | |
# indented with 3 spaces | |
return 3 | |
def two(): | |
# indented with 2 spaces | |
return 2 | |
def one(): | |
# indented with 1 space | |
return 1 | |
def tab(): | |
# indented with 1 tab | |
return "tab" | |
def mixed_spaces(): | |
# first level is indented with 4 | |
if 1 < 2: | |
# second level is indented with 3 | |
if 3 < 4: | |
# third level is intended with 2 | |
if 4 < 5: | |
# fourth level is indented with 1 | |
print("HA TOLD YOU") | |
mixed_spaces() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment