Write a Python Function to Count The Number of Vowels in a String
Hello Programmers, Welcome to my channel.
In this video you will learn about how to Write a Python Function to Count The Number of Vowels in a String
Code
=============================
def count_vowels(data):
total = 0
vowels = "aeiouAEIOU"
for letter in data:
if letter in vowels:
total += 1
return total
text = input("Enter String : ")
print("Count of Vowels is : ", count_vowels(text))
Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners
Видео Write a Python Function to Count The Number of Vowels in a String автора Питон: сила изменения кода
Видео Write a Python Function to Count The Number of Vowels in a String автора Питон: сила изменения кода
Информация
2 декабря 2023 г. 4:45:43
00:05:05
Похожие видео