bruce wrote:
sure does, in the stuff dictionary:
{'dog': []}
(note that Python indexing starts with zero, so foo[1] refers to the dog
entry).
[]
[1]
etc.
</F>
so, this still doesn't get me an array called 'cat', or 'dog'
>>stuff = {}
>>foo = []
>>foo.append('c at')
>>foo.append('d og')
>>stuff[foo[1]] = []
>>stuff
>>foo = []
>>foo.append('c at')
>>foo.append('d og')
>>stuff[foo[1]] = []
>>stuff
(note that Python indexing starts with zero, so foo[1] refers to the dog
entry).
or do i somehow use stuff to add/extract the vals...???
>>stuff["dog"]
>>stuff["dog"].append(1)
>>stuff["dog"]
>>stuff["dog"]
etc.
</F>