2 Comments

text = input("Enter text sentence: ")

vowel_count = 0

vowels = ['a', 'e', 'i', 'o', 'u']

for char in text.lower():

if char in vowels:

vowel_count += 1

print(f"The number of vowels in the string is: {vowel_count}")

Expand full comment

Thx ardit for all this <3

Expand full comment