Hi The second style can be used: j = range(20) print j L = [x for x in j if x > 10] j = L
There are another method such poping the item based on last index to 0: for i in range(len(j)-1,0-1,-1): if j[i]<=10: j.pop(i) print j Pujo -- http://mail.python.org/mailman/listinfo/python-list