Returning dictionary from a function
maymunbeyin at gmail.com
Thu May 14 17:38:55 EDT 2009
I am working on something here and I cannot get the full dictionary
out of a function. I am sure I am missing something here.
Anyways here is a simple code that repeats my problem. Basically I am
just trying to get that values function to return the diky as a
dictionary so that I can query values later.
for a in range(x):
print type(b),len(b), b['f'] # gives error
print type(b),len(b), b['h'] # does not give error
More information about the Python-list