Answer the question
In order to leave comments, you need to log in
What is the least resource intensive way to add a new element to each dictionary of a list in Python?
Hello!
I have a list of dictionaries, let's say
d = [{'id': 1}, {'id': 5}, {'id': 77}, {'id': 100}]
'my_string' + str(i['id'])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question