[Type A] Python Revision Tour-1 – Chapter 1
Table of Contents
15. What are immutable and mutable types? List immutable and mutable types of Python.
Immutable types are those whose values cannot be changed after creation, whereas mutable types are those whose values can be changed after creation.
Immutable types in Python include:
- int
- float
- bool
- tuple
- str
Mutable types in Python include:
- list
- set
- dictionary