[pydotorg-www] modifying https://wiki.python.org/moin/MovingToPythonFromOtherLanguages
lew.kurtz at icloud.com
Wed May 23 22:50:53 EDT 2018
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
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.
More information about the pydotorg-www