Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Python only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Python
hash table?
hash table?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
datulaida
New Member
Join Date:
May 2007
Posts:
14
#1
hash table?
Dec 7 '07, 07:23 AM
how to build hash table in python?
any suggestion?
thanks..
bvdet
Recognized Expert
Specialist
Join Date:
Oct 2006
Posts:
2851
#2
Dec 7 '07, 03:17 PM
Originally posted by
datulaida
how to build hash table in python?
any suggestion?
thanks..
The Python equivalent of a hash table is a dictionary. Example:
[code=Python]>>> dd = {'a': 1, 'b': 2, 'c': 3}
>>> dd['a']
1
>>> [/code]
Comment
Post
Cancel
datulaida
New Member
Join Date:
May 2007
Posts:
14
#3
Dec 10 '07, 04:06 AM
Originally posted by
bvdet
The Python equivalent of a hash table is a dictionary. Example:
[code=Python]>>> dd = {'a': 1, 'b': 2, 'c': 3}
>>> dd['a']
1
>>> [/code]
thank you for your help.. but i want to build hash tables..
Comment
Post
Cancel
bvdet
Recognized Expert
Specialist
Join Date:
Oct 2006
Posts:
2851
#4
Dec 10 '07, 05:10 AM
Originally posted by
datulaida
thank you for your help.. but i want to build hash tables..
From Python Essential Reference:
Originally posted by
Python Essential Reference
Dictionaries are the only built-in mapping type and are Python's version of a
hash table
or associative array.
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment