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 list as specified.
  
  def generate_divisible_numbers():
      return [x for x in range(0, 51) if x % 3 == 0 and x % 5 == 0]
  
  assert generate_divisible_numbers() == [0, 15, 30, 45]
  assert len(generate_divisible_numbers()) == 4
  assert generate_divisible_numbers()[1] == 15
output: def generate_divisible_numbers():
      return [x for x in range(0, 51) if x % 3 == 0 and x % 5 == 0]