<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:Outputs:Algorithm (Steps in Program):<jupyter_code>#Step 2: write code here
age = int(input("enter age:"))
if age>64:
    print("you can vote and you can retire")
elif age<65:
    print("you can vote but you cannot retire work harder")
elif age>17:
    print("you are now a voting citizen")
else:
    print("you cannot vote yet youj are too young")<jupyter_output>enter age:99
you can vote and you can 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 = int(input("enter age:"))

    if age<0:
        print("your age is invalid you must be dead")
    elif age>64:
        print("you can vote and you can retire")
    elif age<65:
        print("you can vote but you cannot retire work harder")
    elif age>17:
        print("you are now a voting citizen")
    else:
        print("you cannot vote yet youj are too young")
except:
    print("INPUT A VALUE")<jupyter_output>enter age:-1
your age is invalid you must be dead
StarcoderdataJupyterStructuredCleanDedup