2 Antworten
+ 2
a = 'b'
b = {a:'a' , 'a':a}
but a = 'b'
this basically means the key a='b' has the value 'a'
and the key 'a' has the value 'b'
b = { 'b' : 'a' , 'a' : 'b' }
now print the value of the key a='b' in the dictionary named b , which is 'a'
0
Thank you