practicepython.in
python exercises
starting python
Traceback (most recent call last):
  File "people.py", line 7, in <module>
    print(youngest_first([{"name": "Ada", "age": 36}, {"name": "Grace", "age": None}]))
          ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "people.py", line 3, in youngest_first
    ordered = sorted(people, key=lambda person: person["age"])
TypeError: '<' not supported between instances of 'NoneType' and 'int'
your_code.py