>>> slovnik = { k : ord(k) for k in "abcdefg".upper() }

>>> slovnik
--> {'A': 65, 'B': 66, 'C': 67, 'D': 68, 'E': 69, 'F': 70, 'G': 71}
