input: from typing import List
  
  def generate_even_numbers(n: int) -> List[int]:
      """ Rewrite the following Python code by introducing list comprehensions.
      >>> generate_even_numbers(20)
      [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
      """
      
      return [i for i in range(1, n + 1) if i % 2 == 0]
output:     return [i for i in range(1, n + 1) if i % 2 == 0]