y=input("Enter a number: ") try: s=float(y) inverse=1.0/s print(inverse) except ValueError: print("Not a number") except ZeroDivisionError: print("infinity") finally: print("always execute")