# your code goes here
lista = [('Thiago', 30, 9.0), ('Maria', 28, 7.0), ('Ana', 30, 9.0)]
ordered = sorted(lista, key=lambda x: (x[2], x[1], x[0]))
print(ordered)
IyB5b3VyIGNvZGUgZ29lcyBoZXJlCmxpc3RhID0gWygnVGhpYWdvJywgMzAsIDkuMCksICgnTWFyaWEnLCAyOCwgNy4wKSwgKCdBbmEnLCAzMCwgOS4wKV0Kb3JkZXJlZCA9IHNvcnRlZChsaXN0YSwga2V5PWxhbWJkYSB4OiAoeFsyXSwgeFsxXSwgeFswXSkpCnByaW50KG9yZGVyZWQp
[('Maria', 28, 7.0), ('Ana', 30, 9.0), ('Thiago', 30, 9.0)]