-
-
Save prashanth-sams/a7207b997a93fc4717f115fffcfc0ed3 to your computer and use it in GitHub Desktop.
sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.json_data = { | |
'content': { | |
'suites': { | |
0: { | |
'name': None, | |
'status': None, | |
}, | |
} | |
} | |
} | |
self.json_data['content']['suites'][0]['name'] = 'suite1' | |
self.json_data['content']['suites'][1]['name'] = 'suite1' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error: on executing self.json_data['content']['suites'][1]['name'] = 'suite2'
*** KeyError: 1