0

I am trying to read data from a config file. First one is config file and next one is python file. But I am getting this error. How to resolve this?

Output(error)

status = active
id = 51362
pin = 1234

[client]
name = Mike
surname= Johns
profession = Intern



from configparser import ConfigParser

   config = ConfigParser()
   config.read('test1.ini')

   print(config.sections())
Nikita
  • 1
  • 1
  • 1
  • Possible duplicate [how-to-read-and-write-ini-file-with-python3](https://stackoverflow.com/questions/8884188/how-to-read-and-write-ini-file-with-python3) – Mohamad Ghaith Alzin Jun 01 '22 at 11:50

0 Answers0