A
Alex Martelli
ruari said:can i writedictionary[key]
- [3]
to mean the 3rd item in the list that is the corresponding value for 'key'
?
No, but you can write dictionary[key][2] for that purpose:
-- that- notation is unneeded and unsupported,
-- indices start from 0 so the 3rd one is indexed as [2]
Alex
- notation is unneeded and unsupported,