mutable sequences
Ben Finney
ben+python at benfinney.id.au
Thu Jun 14 15:42:56 EDT 2018
Larry Martell <larry.martell at gmail.com> writes:
> A string and a list go into a bar. The string asks for a cup of
> coffee. The bartender says "We don't have coffee." The string asks for
> a cup of coffee. The bartender says "I told you we don't have coffee."
> The string asks for a cup of coffee. The bartender says to the list
> "What is wrong with him? Is he deaf?" The list replies, "No, he's
> immutable."
There need to be more bartender scenarios in programming tutorials.
--
\ “The internet's completely over.… Anyway, all these computers |
`\ and digital gadgets are no good. They just fill your head with |
_o__) numbers and that can't be good for you.” —Prince, 2010-07-05 |
Ben Finney
More information about the Python-list
mailing list