Question: Please completethe script so that it prints out the value of key b.

d = {"a": 1, "b": 2}

Expected output:

2

Hint:Dictionaries are exactly likelists. The difference is keys are the indexes.