input: Write a python function to convert ages in different units to years.
  assert convert_age(["14 months", "2 years", "4 weeks", "6 days"]) == [1.1666666666666667, 2, 0.07692307692307693, 0.01643835616438356]
  assert convert_age(["1 year", "24 months", "52 weeks", "365 days"]) == [1, 2, 1, 1]
  assert convert_age(["6 months", "3 years", "8 weeks", "14 days"]) == [0.5, 3, 0.15384615384615385, 0.038356164383561646]
output: def convert_age(age_list):
      def convert_to_years(age):
          number, unit = age.split()
          number = float(number)
          if unit.startswith("year"):
              return number
          elif unit.startswith("month"):
              return number / 12
          elif unit.startswith("week"):
              return number / 52
          elif unit.startswith("day"):
              return number / 365
          else:
              return 0  # Default case if unit is unknown
  
      return [convert_to_years(age) for age in age_list]