Code 2 has a syntax error, because you cannot have True and False literals in the conditional expression.
Code 3 has a syntax error, because you attempt to assign number to even.
All three are correct, but Code 1 is preferred.
All three are correct, but Code 2 is preferred.
All three are correct, but Code 3 is preferred.