I am new here and I have a question for the start. I need to do some exercises for my school and there we use now Python as language. Python is a new language for me. So my problem is:
We need to open a text-file with a list of prices for a supermarket, like this:
{"rice": 2.10,
"orange":3.31,
"eggs":1.92,
"cheese":8.10,
"chicken":5.22}
How can I open this file and convert it into a array or something else, that i can work with it?
Furthermore I need this list as a hash array (named from PowerShell
) to calculate in the next step with the products of the list.