random_characters = "adak"
for letter in random_characters:
print(letter)
if letter == "a":
print("Vowel")
...emits as output:
a
Vowel
d
a
Vowel
k
If I only include one letter in the if statement the code runs fine. However, If I add one more through an or statement...
a
Vowel
d
Vowel
a
Vowel
k
Vowel
"Vowel" is printed after every iteration.