@anonymous/

CautiousInsignificantLists

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.48969024193138555","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"bGlzdGEgPSBbeyJub21lIjogIk1hcmlhIiwgImlkYWRlIjogMTV9LAp7Im5vbWUiOiAiSm9uYXMiLCAiaWRhZGUiOiAxMn0sCnsibm9tZSI6IkZ1bGFubyIsICJpZGFkZSI6OX0sCnsibm9tZSI6IkFybmFsZG8iLCAiaWRhZGUiOjJ9LAp7Im5vbWUiOiJBbWVsaWEiLCAiaWRhZGUiOjI3fSwKICAgICAgICB7Im5vbWUiOiAiSm/Do28iLCAiaWRhZGUiOiAyNn1dCgpvcmRlbmFyID0gIHNvcnRlZChsaXN0YSwga2V5PWxhbWJkYSByb3c6cm93WydpZGFkZSddICwgcmV2ZXJzZT0xICkKCm9yZGVuYXIgPSBbcm93Wydub21lJ10gZm9yIHJvdyBpbiBvcmRlbmFyIF0KCnByaW50KG9yZGVuYXIp"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
lista = [{"nome": "Maria", "idade": 15},
{"nome": "Jonas", "idade": 12},
{"nome":"Fulano", "idade":9},
{"nome":"Arnaldo", "idade":2},
{"nome":"Amelia", "idade":27},
        {"nome": "João", "idade": 26}]

ordenar =  sorted(lista, key=lambda row:row['idade'] , reverse=1 )

ordenar = [row['nome'] for row in ordenar ]

print(ordenar)