Write a program to count Vowels and Consonants in string. using python code example
Example: count how many vowels in a string python
def vowel_count(string):
vowels = ['a', 'e', 'i', 'o', 'u']
return len([i for i in string if i in vowels])
def vowel_count(string):
vowels = ['a', 'e', 'i', 'o', 'u']
return len([i for i in string if i in vowels])