Immutable:
int,float,bool,str,tuple,bytes.Mutable:
list,dict,set,bytearray.mutable objects can change their value or state after creation, while immutable objects cannot be modified at all
Loading…
Immutable: int, float, bool, str, tuple, bytes.
Mutable: list, dict, set, bytearray.
mutable objects can change their value or state after creation, while immutable objects cannot be modified at all