Untangle the Chain

Python for AIMedium+10 XP+10

Untangle the Chain

You inherited this line in an old project. It works, but nobody can read it:

Each person is a (name, age) tuple.

Write adult_names(people) so it returns the same result. You can use a comprehension instead of map and filter.

Examples

people = [("ada", 36), ("ben", 12)]
returns ['ADA']
people = []
returns []

Hints

Solve it to unlock the solution

Once your code passes every test, a reference solution shows up here so you can compare it with yours.

solution.py
CtrlEnterto run