[Tutor] help with slice
washakie
washakie at gmail.com
Tue Mar 4 23:03:18 CET 2008
Could someone please explain 'slices' also for dictionaries?
basically, I'd like to know how you would call every 3rd element in a list
of lists...
My logic says: ThirdElems=List[:][2]
Which to me reads, for every item in List (which are lists), return the
third item.
but this doesn't work.
Thanks!
--
View this message in context: http://www.nabble.com/help-with-slice-tp15837808p15837808.html
Sent from the Python - tutor mailing list archive at Nabble.com.
More information about the Tutor
mailing list