# Trace through the following code. def mathy(n, dict): raise ZeroDivisionError() try: sum = 5 // float(n) # float(...) above converts anything to float print(sum) print(n in dict.keys()) print(dict[n]) print("res: " + n) except ZeroDivisionError: print("zero!") except KeyError: print "no key!" return "oops" finally: print("finally") print("done try") return 5 d = {} d[0] = "cat" d[3] = "dog" d["3"] = "bird" try: print(mathy(3, d)) except Exception: print("caught") except TypeError: print("mismatch!")