TGViewer
Python Learning Python Learning @python_bds · 5.74K subscribers
Post #1187 569
🐍 Top 5 Unique Facts About Python

Python looks simple… 
but internally it’s full of surprising behavior 👇

1️⃣ Variables Are Just References 🔗

Python variables don’t store values. 
They point to objects in memory.

a = [1, 2]
b = a

b.append(3)
print(a)

Output: [1, 2, 3]

👉 Both changed because they point to the SAME object.

2️⃣ Everything in Python is an Object 📦

Even integers, functions, and classes.

x = 10
print(type(x))

Output: <class 'int'>

👉 Numbers, strings, functions… all are objects.

3️⃣ Functions Are First-Class Citizens ⚡

Functions can be passed, returned, and stored.

def greet():
    return "Hello"

func = greet
print(func())

Output: Hello

👉 Functions behave like normal variables.

4️⃣ Small Integers Are Cached 🧠

Python reuses small integers.

a = 256
b = 256

print(a is b)

Output: True

👉 Same object reused internally.

5️⃣ Indentation Defines Structure 📏

No curly braces needed.

if True:
    print("Hello")

👉 Indentation = code structure 
👉 Clean but error-prone 
  • ❤ 5
More from @python_bds
  1. Oct 8, 2026🐛 This Python Bug Looks Random, But It Isn't Look at this: functions = [] for i in range(…
  2. Oct 6, 2026🐍 Python Performance Optimization Python Performance Optimization: Make Your Code Faster…
  3. Oct 4, 2026Python Set Methods ✍️
  4. Oct 3, 2026Post #1310
  5. Oct 1, 2026🐍 Python Beginner Notes
  6. Sep 30, 2026🧠 return vs print() in Python These are not interchangeable. def add(a, b): print(a + b)…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →