Clarification on Immutability please
Michael Torrie
torriem at gmail.com
Tue Jan 21 23:29:56 EST 2020
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.
More information about the Python-list
mailing list