Please consider this dictionary
dict = {
"AccessKey": {
"UserName": "string",
"AccessKeyId": "string",
"Status": "Active | Inactive",
"SecretAccessKey": "string",
"CreateDate": "datetime(2015, 1, 1)",
}
}
What would be a way to assign values of the specified keys in one line, to vars?
x, y = dict['AccessKey'][AccessKeyId']['SecretAccessKey']
A solution would be:
x = dict['AccessKey']['AccessKeyId']
y = dict['AccessKey']['SecretAccessKey']