[Tutor] strings features versus lists

Joel Goldstick joel.goldstick at gmail.com
Fri Nov 22 15:01:27 EST 2019


On Fri, Nov 22, 2019 at 2:57 PM Patrick Frank <sfsoc at gmx.net> wrote:
>
> Hello,
>
> at the moment I mainly learn basics from the excellent book "Think
> Python". As I walked through chapter 10 (which is about lists) I
> wondered why are strings immutable? I would like to understand this
> design decision.
>
> Thanks in advance,
> P.
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor

I'm not a language maven, like some others here, but the first thing
that comes to mind for me is that immutable strings can be used as
keys for dictionaries.

-- 
Joel Goldstick
http://joelgoldstick.com/blog
http://cc-baseballstats.info/stats/birthdays


More information about the Tutor mailing list