numList = [1,2,3] for x in numList: print x+1 stringList = ['1','2','3'] print stringList[0] + ' ' + stringList[1] + ' ' + stringList[2] print stringList[-2]