input: Write a python function to generate a list of even numbers within a given range.
  assert generate_list(2, 20) == [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
  assert generate_list(10, 25) == [10, 12, 14, 16, 18, 20, 22, 24]
  assert generate_list(1, 10) == [2, 4, 6, 8, 10]
  assert generate_list(15, 15) == []
output: def generate_list(start, end):
      return [num for num in range(start, end + 1) if num % 2 == 0]