[pydotorg-www] modifying https://wiki.python.org/moin/MovingToPythonFromOtherLanguages

Lew Kurtz lew.kurtz at icloud.com
Wed May 23 23:28:12 EDT 2018


apologies, an account name would be helpful, mine is
LewKurtz

> On May 23, 2018, at 7:50 PM, Lew Kurtz <lew.kurtz at icloud.com> wrote:
> 
> 
> 
> I wanted to create an account to discuss changes to the indexes and slices example, because basically, the right and left sides of that example seem only half related; the way it is written, could be convinced that the first element in that list on the left consists of the list [0,1,2,3,4,5]  I think would be clear if it was something like this
> (sorry the spacing is not good)
> 
> Index from rear      -6   -5   -4   -3  -2  -1
> index from front       0    1    2    3   4   5
>                             +—+—+—+—+—+—+
> my_list =               | a  | b |  c | d  | e  |  f  |
>                             +—+—+—+—+—+—+
> Slice from front     :     1   2    3   4    5    :
> Slice from rear     :     -5  -4  -3  -2   -1   :
> 
> (notice also only 4 colons instead of 8)
> 
> Then on the right side
> 
> my_list=[a,b,c,d,e,f]
> len(my_list)==6
> my_list[0]==a
> etc.
> 
> This way, the whole example is connected.
> 
> That’s my 2 cents. If you think I’m off in left field, then I don’t need access to modify the page. Or please feel free to make these modifications if that’s easier.
> 
> Thanks,
> Lew
> 



More information about the pydotorg-www mailing list