<jupyter_start><jupyter_text>Now You Code 1: Vote or Retire? Part 1Write a program to ask for your age as input, then output whether or not you can vote and whether your not you can retire. Let's assume the voting age is 18 or higher, and the retirement age is 65 or higher.**NOTE:** This program is making two seprate decisions, and thus should have two separate if else statements.Example Run:```Enter your age: 45You can vote.You cannot retire.```  Step 1: Problem AnalysisInputs: ageOutputs: whether you can vote or retireAlgorithm (Steps in Program):- input age- if age < 18, say you can't vote- else, say you can vote- if age < 65, say you can't retire- else, say you can retire<jupyter_code>#Step 2: write code here
age = float(input("Enter your age: "))
if age < 18:
    print("You cannot vote")
else:
    print("You can vote")
if age < 65:
    print("You cannot retire")
else:
    print("You can retire")<jupyter_output>Enter your age: 9
You cannot vote
You cannot retire<jupyter_text>Part 2Now that you got it working,  re-write your code to handle bad input using Python's `try... except` statement:Example run:```Enter your age: threveThat's not an age!```**Note:** Exception handling is not part of our algorithm. It's a programming concern, not a problem-solving concern!<jupyter_code>## Step 2 (again): write code again but handle errors with try...except
try: 
    age = float(input("Enter your age: "))
    if age < 0:
        print("That's not an age")
    else:
        if age < 18:
            print("You cannot vote")
        else:
            print("You can vote")
        if age < 65:
            print("You cannot retire")
        else:
            print("You can retire")
except:
    print("That's not an age")<jupyter_output>Enter your age: -1
That's not an age
StarcoderdataJupyterStructuredCleanDedup