1: 2: 3: 4: 5:
# using map and lambda: print map(lambda c:c.position,chromsublist[0:4]) # using list comprehension print [x.position for x in chromsublist[0:4]]