I have made a program that collects and creates data inside config files (.ini) but the thing is I need to know how I can make it so it checks if something is already in the config file and then if it is not in there it will right it into there.
Here is kind of what I want it to look like:
if 'name' not in config:
config['name']
else:
print('Name already exists.')
so any Ideas?
Thanks In Advance!