input: Write a function to rewrite the given Python code using list comprehensions. The function should generate a list of even numbers between 1 and 20. The function should return the list of even numbers.
  assert rewrite_with_list_comprehension() == [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
output: def rewrite_with_list_comprehension():
      return [x for x in range(1, 21) if x % 2 == 0]