Saturday, 31 August 2013

Python Hash Tables

Python Hash Tables

I have those data I want to project. I need to create a hash table that
when I enter a number it gives me a name.
Like this
dd = {'Here Number' : [(Name Here)]}
z='Here Number'
dd[z]
#It should give as result the Name
So when I try this I get error on the second part [(Name Here)]
What is the solution on this.
Any suggestions

No comments:

Post a Comment