I want to add lements to nested python dictionary
res_checks = dict()
res_checks['arg1']['sub1'] = 'test'
print(res_checks)
but I always get this error
Traceback (most recent call last):
File "main.py", line 2, in <module>
res_checks['arg1']['sub1'] = 'test'
KeyError: 'arg1'
try to add it in different formats but it is always fail