Answers for "solve a python program to read a word and print the number of letters vowel and percentage of vowels in wor usig a discoary"

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 "solve a python program to read a word and print the number of letters vowel and percentage of vowels in wor usig a discoary"

Python Answers by Framework

Browse Popular Code Answers by Language