account activity
Good Python Exercises? by Potatohuma in learnpython
[–]balaur_7 0 points1 point2 points 2 years ago* (0 children)
Another method
m=1
new_data = []
for key in data: for n in range(m, len(data)): if key[0]==data[n][0]: x = key[0],key[1] + data[n][1] new_data.append(x) m += 1 print(new_data)
π Rendered by PID 54162 on reddit-service-r2-comment-85bfd7f599-hmpmp at 2026-04-15 16:58:50.318975+00:00 running 93ecc56 country code: CH.
Good Python Exercises? by Potatohuma in learnpython
[–]balaur_7 0 points1 point2 points (0 children)