The exercise is as follows:
Make a program where the user types a letter and a number all. If the letter is a vowel and the number is even, or the letter is consonant and the odd number, show "BAZINGA!". Otherwise, show "SHAZAM!".
I did it this way:
vogal = ["a","e","i","o","u"]
par = [0,2,4,6,8,10]
letra = input("Entre com a letra: ")
numero = input("Entre com o numero: ")
if letra in vogal and numero in par:
print("Bazinga!")
elif letra not in vogal and numero in par:
print("Shazam!")
else:
print("Bazinga!")
But when I run this code, even if I enter "b" and "2", the output will exit Bazinga, and as it appears in the exercise should be "Shazam" the output. What's wrong with my code? Thank you.