Hi, I am struggling to understand Python string immutability. I am able to modify Python string object after initializing/assigning it a value. So how does immutability work? I am not following it. Sorry for really stupid question. Any help?
<code> >>> s = "First" >>> print s.__class__ <type 'str'> >>> print s First >>> s = "Second" >>> print s Second >>> </code> jM.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor