மாற்ற முடியாத பொருளை உருவாக்கிய பின்னர் மாற்ற முடியாது; மாற்றக்கூடிய பொருளை மாற்ற முடியும். இந்த வேறுபாடு Python-ல் மையமாக உள்ளது மற்றும் aliasing, dict keys, function arguments, மற்றும் நுணுக்கமான பிழைகளின் வகுப்பை பாதிக்கிறது.
இரண்டு வகைகள்
Immutable: int, float, bool, str, tuple, frozenset, bytes, None
Mutable: list, dict, set, bytearray, and most custom objects
மாற்ற முடியாது: "மாற்றம்" ஒரு புதிய பொருளை உருவாக்குகிறது
x =
x.upper()
x +=
n =
n +=
