input: Write a function to generate even numbers within a given range.
  assert generateEvenInRange(0, 10) in [0, 2, 4, 6, 8, 10]
  assert generateEvenInRange(1, 9) in [2, 4, 6, 8]
  assert generateEvenInRange(20, 30) in [20, 22, 24, 26, 28, 30]
output: def generateEvenInRange(start, end):
      return [num for num in range(start, end + 1) if num % 2 == 0]