a.get(k[, x]) a[k] if k in a, else x.

Never raises an exception if k is not in the dictionary, instead it returns x. x is optional; when x is not provided and k is not in the dictionary, None is returned.