Computer Science, asked by Ashau232, 1 year ago

What is immutable in Python?

Answers

Answered by Anonymous
0

Everything in Python is an object. ... Simple put, a mutable object can be changed after it is created, and an immutable object can't. Objects of built-in types like (int, float, bool, str, tuple, unicode) are immutable. Objects of built-in types like (list, set, dict) are mutable.

Answered by Anonymous
3
 \huge \mathfrak{Answer}

➡Python defines variety of data types of objects. These objects are stored in memory. Contents of some objects can be changed after they are created while others can't be changed. Numeric objects such as integer, float and complex number objects occupy the memory and memory contents can not be changed. Such objects are called immutable. String and dictionary objects are also immutable. Tuple is also immutable. List object however is mutable because items in a list object can be modified, deleted or added in a list.
Similar questions