Quiz: Python's Mutable vs Immutable Types: What's the Difference?

2026-10-30来源 Real PythonEnglish

In this quiz, you’ll test your understanding of Python’s Mutable vs Immutable Types: What’s the Difference?.

By working through this quiz, you’ll revisit how mutable and immutable objects differ, which built-in types fall into each group, and how mutability shows up in everyday gotchas like variable aliasing, mutable default arguments, and shallow copies.


[ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your inbox every couple of days. >> Click here to learn more and see examples ]

原文:https://www.a8q9.cn/en/article/quiz-python-s-mutable-vs-immutable-types-what-s-the-difference-03ffd8.html

相关文章