voters(users) where users is a list of (name, age) tuples. Return only the tuples with age >= 18, using filter with a lambda.voters([('Anu', 17), ('Raj', 21)])[('Raj', 21)]Only Raj is 18 or older.
filter keeps items where the predicate is truthy.
The predicate reads u[1].