input: Write a python function to generate a list of squares from 0 to 9 using list comprehension.
  assert generate_squares() == [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
  assert generate_squares() == [i**2 for i in range(10)]
output: def generate_squares():
      return [i**2 for i in range(10)]