Guest User

Untitled

a guest
Jul 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. """Proving Jeremy wrong, indentation experimentation"""
  2.  
  3. def four():
  4. # indented with 4 spaces
  5. return 4
  6.  
  7. def three():
  8. # indented with 3 spaces
  9. return 3
  10.  
  11. def two():
  12. # indented with 2 spaces
  13. return 2
  14.  
  15. def one():
  16. # indented with 1 space
  17. return 1
  18.  
  19. def tab():
  20. # indented with 1 tab
  21. return "tab"
  22.  
  23. def mixed_spaces():
  24. # first level is indented with 4
  25. if 1 < 2:
  26. # second level is indented with 3
  27. if 3 < 4:
  28. # third level is intended with 2
  29. if 4 < 5:
  30. # fourth level is indented with 1
  31. print("HA TOLD YOU")
  32.  
  33. mixed_spaces()
Add Comment
Please, Sign In to add comment