Back
+10 XP
Concept

Indentation

Other languages use curly brackets `{}` to organize code. Python uses indentation—exactly 4 spaces. If your lines don't line up neatly, Python refuses to run and screams `IndentationError`:

python
print("Hello")
  print("World")  # CRASH! Accidental random spaces!

# 12. Indentation Other languages use curly brackets `{}` to organize code. Python uses indentation—exactly 4 spaces. If your lines don't line up neatly, Python refuses to run and screams `IndentationError`: ```python print("Hello") print("World") # CRASH! Accidental random spaces! ``` In Python, blank space isn't cosmetic; it is law.

Checkpoint

What happens if you randomly add 2 spaces to the front of a line?

Practice

Fix this broken code by removing the illegal random leading space on line 2: ```python print("System booting") print("All systems nominal") ```

Terminal
01
Tap code blocks below to assemble
Available Blocks