What are Python data types, which are mutable and which are immutable?

Type:

Integer int string STR Float Boolean bool list Dict set set tuple

Mutable type: the value of this data type changes the value of this data type without changing the memory space.

1. List 2. Dictionary 3

Immutable type: when the change is worthwhile, a new memory space is allocated instead of the original memory space.

  1. The integer
  2. string
  3. Floating point Numbers
  4. The Boolean
  5. tuples
  6. Well, that’s all for today’s sharing. If you’re interested in Python, join us.Python Learning communicationSkirt 】, receive free learning materials and source code.