Hello I'm just starting out with my first python projects. The python variable "key_name" is asked from the user. This variable should then be written into the configparser file under the section [keys] -> personal. Basically where the "{}" are. And I can't quite figure it out.
I tried this but it doesn't work:
key_name = input("\nPublic key name: ")
config = configparser.ConfigParser()
config['keys']['personal'] = '{}'.format(key_name)
with open("./data/settings.ini", "w") as configfile:
config.write(configfile)