Mutable and Immutable Datatypes

  • Mutable Datatypes: - Those which can be edited.
    1. List
    2. Set
    3. Dict

  • Immutable Datatypes: - Those which cannot be edited
    1. Int
    2. Float
    3. String
    4. Boolean
    5. Tuple
    6. None

2 Likes

can a list inside a tuple be edited? because tuple is immutable datatype

2 Likes