input: Write a function to generate a list of all numbers from 0 to 50 in Python that are divisible by both 3 and 5. The function should return the generated list. If no numbers meet the criteria within the given range, return an empty list.
  assert generate_list()==[0, 15, 30, 45]
  assert generate_list()==[0, 15, 30, 45]
  assert generate_list()==[0, 15, 30, 45]
  assert generate_list()==[0, 15, 30, 45]
  assert generate_list()==[0, 15, 30, 45]
output: def generate_list():
      return [i for i in range(51) if i % 3 == 0 and i % 5 == 0]