built-in ** zip() ** function
help(zip)
zdata = zip([1, 2, 3], ('a', 'b', 'c'))
print(zdata)
alist = list(zdata)
print(alist)
adict = dict(alist)
print(adict)
Create a dict that maps lowercase alphabets to integers, e.g., a maps to 1, b maps to 2, ..., z maps to 26 and print it
import string
lettersToDigits = dict(zip(string.ascii_lowercase, range(1, 27)))
print(lettersToDigits)
from collections import OrderedDict
bdict = OrderedDict()
bdict['z'] = 26
bdict['a'] = 1
print(bdict)
Create a dict that maps lowercase alphabets to their corresponding ASCII values , e.g., a maps to 97, b maps to 98, ..., z maps to 122 and print the dictionary in alphabetical order
import string
lettersToDigits = dict(zip(string.ascii_lowercase, range(ord('a'), ord('z')+1)))
print(lettersToDigits)