Reading a list of dictionaries in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

Reading a list of dictionaries in python

I wrote a code that produces a list of dictionaries as a output in the terminal. I’m trying to save this in a database over time. But I’m having a hard time reading the data from the terminal.

29th Jan 2019, 3:15 PM
Shyam - avatar
1 Answer
+ 2
Have you looked into file handling (saving and loading your data from your code)? If you don't want to transform your data into text format everytime you save (and back every time you load), research the modules json or pickle which simplify the process.
29th Jan 2019, 4:15 PM
HonFu - avatar