Level 1: Beginner
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}")
Thx ardit for all this <3
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}")
Thx ardit for all this <3