vount vowels python

Solutions on MaxInterview for vount vowels python by the best coders in the world

showing results for - "vount vowels python"
Juan Diego
27 Oct 2020
1vow = ['a', 'A', 'e',
2          'E', 'i', 'I',
3          'o', 'O', 'U',
4          'u', 'Y', 'y']
5
6def vowels(str):
7  
8  global vow
9  string = list(str)
10  count = 0
11  
12  for i in range(len(string)):
13    
14    if string[i] in vow:
15      
16      count += 1
17  return count
18