d = 789 try: d = float(input("Input numeric value: ")) except ValueError: print("Value error!") print("Output:",d)