Answer
The difference between d[key] and d.get(key) is that d[key] will raise KeyError exception if the key is not found in the dictionary but d.get(key) will not give any error, instead it will return None if key is not present in the dictionary.
Work Step by Step
Same as above.