0
python list
hi how can i sum second elements of indexes that have same first element in this list? initial list = [['p2', 0], ['p1', 0], ['p3', 0], ['p2', 4], ['p4', 6]] result = [['p2', 4], ['p1', 0], ['p3', 0], ['p4', 6]]
2 Respostas
0
https://code.sololearn.com/c2p20Kq9XkUd/?ref=app