#! /usr/bin/python a=[1,2,3,4,5] b=a*3 i=0 for val in b: print "b[%d]"%(i),val i +=1