Answer the question
In order to leave comments, you need to log in
How to add to dictionary?
I have an empty dictionary sl = {} , I need to add data to it to get it like this [{"id": 1, "name": "name"}, {"id": 2, "name": "second name"}, etc.] How to do this, I can’t figure out how, I searched on the Internet, but didn’t find what I need, or I didn’t search well, but oh well, please help!
Answer the question
In order to leave comments, you need to log in
I have an empty dictionary sl = {}
I need to add data to it so that it looks like this [{"id": 1, "name": "name"}, {"id": 2, "name": "second name"}, etc.]
I searched on the Internet, but did not find what I need, or I searched badly
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question