Skip to content

Instantly share code, notes, and snippets.

@ievans3024
Created July 21, 2018 15:44
Show Gist options
  • Save ievans3024/3467896bf6d2e819417b4838f0fc0b98 to your computer and use it in GitHub Desktop.
Save ievans3024/3467896bf6d2e819417b4838f0fc0b98 to your computer and use it in GitHub Desktop.
Proving Jeremy wrong, indentation experimentation
"""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