input: Write a function to generate a list of floating-point numbers from 0 to 10 using a list comprehension in pure Python. The function should return the generated list.
  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() == [float(i) for i in range(0, 11)]
output: def generate_float_array():
      return [float(i) for i in range(0, 11)]