L = [ x**2 for x in range(10)] for posicion, valor in enumerate(L): print "%i -> %i" % (posicion,valor)