Sort list of tuples (name, age, score) by age ascending then score descending.
Implement this function:
def sort_records(records: list) -> list:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: records.
Input
[('alice', 30, 85), ('bob', 25, 90), ('carol', 30, 95)]
Output
[('bob', 25, 90), ('carol', 30, 95), ('alice', 30, 85)]