input: Write a function to rewrite the given Python code using list comprehensions. The original code is intended to collect all even numbers from 1 to 20 into a list. The rewritten code should achieve the same functionality using list comprehensions.
  
  
  def list_comprehension_example():
      even_numbers = [i for i in range(1, 21) if i % 2 == 0]
      return even_numbers
  
  assert list_comprehension_example() == [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
  
output: def list_comprehension_example():
      even_numbers = [i for i in range(1, 21) if i % 2 == 0]
      return even_numbers