Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[Discussion] 0 indexing -vs- 1 indexing

Name: Sagey McSagerson 2011-04-05 23:03

Discuss: Which is superior and why. Go go go go go

Name: Anonymous 2011-04-06 21:09

>>26
You can anyway:
>>> [1,2,3][0]
1
>>> [1,2,3][-1]
3

The index at -1 is also the index length - 1, so it makes sense. Also, >>9.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List