Dictionary

DictionariesΒ 
storeΒ 
theΒ 
dataΒ 
valuesΒ 
inΒ 
theΒ 
key-value
Β 
pairs.
CurlyΒ 
{}Β 
bracketsΒ 
areΒ 
usedΒ 
toΒ 
defineΒ 
aΒ 
Dictionary.Β 
TheΒ 
Key-ValueΒ 
pairsΒ 
insideΒ 
theΒ 
dictionariesΒ 
areΒ 
separatedΒ 
byΒ 
aΒ 
colonΒ 
':'
.Β 
TheΒ 
leftΒ 
sideΒ 
isΒ 
calledΒ 
theΒ 
key
,Β 
andΒ 
theΒ 
rightΒ 
sideΒ 
isΒ 
theΒ 
value
.
YouΒ 
canΒ 
accessΒ 
theΒ 
valuesΒ 
withΒ 
theΒ 
helpΒ 
ofΒ 
theΒ 
keysΒ 
asΒ 
thereΒ 
isΒ 
noΒ 
indexingΒ 
inΒ 
Dictionaries
.
dict_name = { key : value }
dict_1 = { 'Theo' : 7717234567, 'Zo' : 8211132111 }
print(dict_1['Zo'])
#accessing the key 'Zo', to get the value