There are no indexes / positions in the python dictionary. The key / value pair does not have a specific order.
If you want to select certain positions from the dictionary, you must indicate some criteria / order to it.
For example, according to the alphabetical order of names:
sorted(tel.items())[5:11]
returns a list of 5 tuples (name, number)from positions 5-10 in alphabetical order.
source
share