+ 1
dictionary2 = {'Key1': {'Key2': 'HSR'}, 'Key2':{'Key2' : 'HsR'},'Key3':'HSr'}
Grab 'HSR' using keys and indexing.
3 Respostas
+ 1
dictionary2['Key1']['Key2']
+ 1
The 1st one will be Key1
+ 1
Sometimes it is faster to try than to ask (try this code on the playground):
dictionary2 = {'Key1': {'Key2': 'HSR'}, 'Key2':{'Key2' : 'HsR'},'Key3':'HSr'}
print(dictionary2['Key1']['Key2'])