list(sorted(lista, key=lambda item: item[“age”])) > On May 19, 2021, at 10:50, Valerio Pachera <[email protected]> wrote: > > Ciao, avendo questa lista: > > [ > {'name': 'mario', 'age': 50}, > {'name': 'luigi', 'age':25}, > {'name': 'sonic', 'age':63} > ] > > come posso ordinare per età? > _______________________________________________ > Python mailing list > [email protected] > https://lists.python.it/mailman/listinfo/python
_______________________________________________ Python mailing list [email protected] https://lists.python.it/mailman/listinfo/python
