List comprehension is a neat was to constuct a list in python within one line of code. The code below shows the general syntax for appending items using a loop.

for item in iterable:
  if condition == True:
    newlist.append(x)

By using list comprehension, this code can be reduced to:

newlist = [expression for item in iterable if condition == True]