git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clarification on Immutability please


On 1/21/20 6:52 PM, Ethan Furman wrote:
> On 01/21/2020 10:55 AM, Michael Torrie wrote:
> 
>> Slicing
>> returns a new object whether one is slicing a tuple, list, or a string,
>> the latter two are mutable objects.
> 
> Strings are not mutable.

Yup I got my items in the wrong order. I meant to say list, tuple, or a
string, the latter two are immutable objects.  Thanks for correcting me.