Print out just the vowel letters using Python [closed]

  python, python-3.8

I want to print out just the vowels letters from the user input.
My code doesn’t work.

user = input("Enter a word: ").lower()
for i in user:
    if i == "aieou":
        print(i)
    else:
        None

Source: Python Questions

LEAVE A COMMENT