Comprehensive Of Datasture

There are two things to keep in mind for each of data types you are using:

  • Are they mutable?

    Mutability is about whether or not we can change an object once it has been created. A list can be changed so it is mutable. However, strings cannot be changed without creating a completely new object, so they are immutable.

  • Are they ordered?

    Order is about whether the order of the elements in an object matters, and whether this position of an element can be used to access the element. Both strings and lists are ordered. We can use the order to access parts of a list and string.


Comprehensive Of Datasture
https://jackiedai.github.io/2025/12/01/011Python/012Comprehensive_Datasture/
Author
Lenthiu
Posted on
December 1, 2025
Licensed under