Word of choise

PHOTO EMBED

Tue Sep 20 2022 11:32:15 GMT+0000 (Coordinated Universal Time)

Saved by @kalvadet #python

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")
content_copyCOPY

http://localhost:8889/notebooks/dataProgramming/Lesson 6 (2) - Loops/Lecture/Lecture 6 - Loops - 2021-22 - Lecture - Live Lecture-Expanded.ipynb