+ 3
you start with a elif
the first statement must be a if
as for the others statements, you are comparing x to a varible not a string
and last,
(x == a or A) is different of (x == a or x== A)
the first case will verify if a or A valid and then compare the result to x,
the second case i believe is what you want
*check operator precedence