I have a very simple try/except block to basically force the variable 'password' to be defined as an integer from user input.
It is likely a dumb question, but I have tried looking around and cannot find some solution.
    try:
        password = int(input('Password: '))
    except ValueError:
        print("Please do not type letters or symbols!!")
    while type(password) != 'int':
            try:
                password = int(input('Password '))
            except ValueError:
                print("Please do not type letters or symbols!!")
    print('Complete, we have your password.')
But, when I try run this python shell, it comes up with a Syntax Error, highlighting 'except'...
 
     
     
    