Feb-25-2021, 10:13 PM
i found the solution
my code:
hey python, if the letter variable equals to string a, or the letter variable equals to string b, or the letter variable equals to string i, or the letter variable equals to string o, or the letter variable equals to string u, then print the letter variable
my code:
word = input("Write your word here: ") print(word) for letter in word: if letter == 'a' or letter == 'e' or letter == 'i' or letter == 'o' or letter == 'u': print(letter)as you can see here i added alot of ors, which basically in human will be like this:
hey python, if the letter variable equals to string a, or the letter variable equals to string b, or the letter variable equals to string i, or the letter variable equals to string o, or the letter variable equals to string u, then print the letter variable