Mutability of built-in Pyton data types
Type | Description | Immutable |
bool | Boolean value | Yes |
int | integer | Yes |
float | floating point number | Yes |
list | mutable sequence of objects | No |
tuple | immutable sequence of objects | Yes |
str | Character string | Yes |
set | unordered set of distinct objects | No |
frozenset | immutable variant of set | Yes |
dict | associative key value mapping | No |