1
Guys, I have a file and I’m taking the contents of it and adding it into a variable. The contents of the file and the value of the variable is like this:
NAME=Maquina01
ID="MAQ 15478"
version=08
I’d like to take this variable content and turn it into a dictionary in Python(3), like this:
{'NAME':'Maquina01','ID':'MAQ 15478', 'version': 08}
Could someone tell me how I can do it?
Thank you.
Module configparser is native to Python and can handle INI files.
– Woss