Normally, list comprehensions are used to derive a new list from an existing list. Eg:
>>> a = [1, 2, 3, 4, 5] >>> [i for i in a if i >
b = [] a = [1, 2, 3, 4, 5] b.extend (a)