SETTINGS_FILE = open('settings.py', '+a')
def check_settings():
for i in SETTINGS:
if i == 'font_face':
SETTINGS_FILE.write(SETTINGS['font_face'] = 'JetBrains Mono')
SETTINGS_FILE.close()
print(i)
File "F:\ПУТЬ_К_ПРОЕКТУ\ПРОЕКТ\main.py", line 24
SETTINGS_FILE.write(SETTINGS['font_face'] = 'JetBrains Mono')
^
SyntaxError: expression cannot contain assignment, perhaps you meant "=="?