#!/usr/local/bin/python2 from collections import OrderedDict d = OrderedDict(((1, 1),(2, 2),(3, 3))) print d[1]