input: Write a function to generate a list of floating-point numbers from 0 to 10, with each number being a float. If the range is not specified, the default should be from 0 to 10. Return the list.
  def generate_float_array(start=0, end=10):
      return [float(i) for i in range(start, end+1)]
  
  assert generate_float_array() == [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0]
  assert generate_float_array(5, 7) == [5.0, 6.0, 7.0]
  assert generate_float_array(3, 3) == [3.0]
  assert generate_float_array(-2, 2) == [-2.0, -1.0, 0.0, 1.0, 2.0]
output: def generate_float_array(start=0, end=10):
      return [float(i) for i in range(start, end+1)]