Python Indentation
🧠 Python Indentation (very important in Python ) In Python, indentation is not optional —it defines the structure of your code (instead of {} like in Java/C++). What is indentation? Indentation means spaces at the beginning of a line . Python uses indentation to define blocks of code (like inside if , for , functions, etc.). 📏 Rules of indentation Use 4 spaces (standard practice) Be consistent (don’t mix tabs and spaces) All lines in same block must have same indentation 🧠 Simple understanding Tab = shortcut key for indentation Spaces = actual characters (recommended in Python) 🔹 Basic Example if True: print("Hello") # indented → inside if block print("Outside") # not indented → outside block ❌ Wrong (will give error) if True: print("Hello") # ❌ no indentation 👉 Error: IndentationError 🔹 Example with loop for i in range(3): print(i) print("Loop running") print("...