Objective
With ConfigParser you can also generate INI files: you create sections, assign keys and save it with write.
Instructions
- The first line has the number
nof lines; each one issection key value(one word per field). - Create the sections that are needed (once) and save the result to
config.ini. Then showSections: kwith the number of sections.
3
server host localhost
server port 8080
user name ana
Sections: 2
Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.
Start exercise