🔥 BLACK FRIDAY SALE1 course ₹199·any 3 courses ₹399 for 3 months·ALL courses + 1 mock interview ₹599 for 6 monthsClaim offer →

Python · Python Foundations · Foundation · 26 min read · FREE LESSON

Names, Objects and Mutability: The Python Object Model Explained

Understand the single idea behind most Python surprises: names point to objects. Learn identity versus equality, mutable versus immutable types, aliasing bugs, shallow and deep copies, reference counting, and how numbers (int, float, Decimal) really behave, with practical debugging examples.

Names, Objects and Mutability: The Python Object Model Explained: lesson illustration

A first look

  • Foundation level · 26 min read
  • 7 interview questions with model answers
  • Python Foundations · Python Mastery

You will learn to

  • Variables as labels: how names, objects and references work
  • is versus ==, and id() as a debugging tool
  • Mutable and immutable objects, and the aliasing bugs they cause
  • …and 3 more topics inside
Free with an account

This lesson is free, once you create your account

  • Every free lesson in every section, in full
  • Track your progress and pick up where you left off
  • Free practice questions and an incident simulation
  • Takes under a minute: name, email and a password

No card needed.