-
Notifications
You must be signed in to change notification settings - Fork 36
Dictionary
ZekeLabs Technologies Private Limited edited this page Dec 5, 2016
·
1 revision
##Introduction
- Key Value Data Structure or associative datastructure
- O(1) access for lookup.
- Unordered data structure.
- Key should be unique
- Value can repeat
db = {'a':1,'b':2,'c':3} for k,v in db.items(): print k,v
This will print values print db.values()
This will print keys print db.keys()