[Doc-SIG] readability of sample programs in tutorial

Steven D'Aprano steve at pearwood.info
Fri May 11 13:16:28 EDT 2018


On Fri, May 11, 2018 at 09:40:29AM -0700, Xuan Wu wrote:

> >>>tel  =  {'jack':  4098,  'sape':  4139}
> >>>tel['guido']  =  4127
> >>>tel
> {'sape': 4139, 'guido': 4127, 'jack': 4098}
> >>>tel['jack']
> 4098 ...
> 
> I did quite some digging to confirm my guess of the hidden meaning, 
> during which I realized it was initially written 27 years ago, without 
> much change so far. Now I'm curious if its meaning is obvious to most 
> nowadays beginners even as English speakers.

There's a hidden meaning? I thought they were just arbitrary keys and 
values. Obviously "guido" comes from the designer of Python, but I 
always thought that the rest are just arbitrary.



-- 
Steve


More information about the Doc-SIG mailing list