Python - google API example

Use following text for finding number of vowels, number of consonants and total number of words in the text file.

Sample Text file to find the number of vowels in the file

Vowels are letters that represent speech sounds where air leaves the mouth without any blockage by the tongue, lips, or throat. The vowels in the alphabet are a, e, i, o, u, and sometimes y. All other letters in the English alphabet are consonants, which represent speech sounds where air is blocked somehow before leaving the mouth.


Even though they’re only a few letters, vowels are important in spelling, pronunciation, and grammar. Below we explain all the details and rules you need to know, but first let’s take a deeper look at this question: What are vowels?