Answers for "write a python program to read a list of words and create a dictionary with the words as key and number of vowels and consonants"

1

vount vowels python

vow = ['a', 'A', 'e',
          'E', 'i', 'I',
          'o', 'O', 'U',
          'u', 'Y', 'y']

def vowels(str):
  
  global vow
  string = list(str)
  count = 0
  
  for i in range(len(string)):
    
    if string[i] in vow:
      
      count += 1
  return count
Posted by: Guest on October-12-2020

Code answers related to "write a python program to read a list of words and create a dictionary with the words as key and number of vowels and consonants"

Python Answers by Framework

Browse Popular Code Answers by Language