471,330 Members | 1,906 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

hash table?

how to build hash table in python?
any suggestion?
thanks..
Dec 7 '07 #1
3 10484
bvdet
2,851 Expert Mod 2GB
how to build hash table in python?
any suggestion?
thanks..
The Python equivalent of a hash table is a dictionary. Example:
Expand|Select|Wrap|Line Numbers
  1. >>> dd = {'a': 1, 'b': 2, 'c': 3}
  2. >>> dd['a']
  3. 1
  4. >>> 
Dec 7 '07 #2
The Python equivalent of a hash table is a dictionary. Example:
Expand|Select|Wrap|Line Numbers
  1. >>> dd = {'a': 1, 'b': 2, 'c': 3}
  2. >>> dd['a']
  3. 1
  4. >>> 
thank you for your help.. but i want to build hash tables..
Dec 10 '07 #3
bvdet
2,851 Expert Mod 2GB
thank you for your help.. but i want to build hash tables..
From Python Essential Reference:
Dictionaries are the only built-in mapping type and are Python's version of a hash table or associative array.
Dec 10 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Pelo GANDO | last post: by
34 posts views Thread by pembed2003 | last post: by
7 posts views Thread by Matthias Käppler | last post: by
2 posts views Thread by Ravi | last post: by
21 posts views Thread by Johan Tibell | last post: by
44 posts views Thread by gokkog | last post: by
11 posts views Thread by Douglas Dude | last post: by
139 posts views Thread by ravi | last post: by
1 post views Thread by jacob navia | last post: by
6 posts views Thread by j1mb0jay | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.