I understand how a standard dictionary works in Python. If for example you have a dictionary like the one on line one of the code section. Is it possible to modify that to use a range of values so you would end up with something like this:
1-3 -- abc
4-8 -- def
9-12 -- ghi
I would appreaciate any help or advice on this.
dict([(1, 'abc'), (4, 'def'), (9, 'ghi')])