def check_if_vowel(word): count_v = 0 for letter in word.lower(): if letter == "a" or letter == "i" or letter == "o" or letter == "u": count_v =+1 return count_v ans = input("Word of choise:") print(f"It has {check_if_vowel(ans)} vowels")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter