The Poem.txt file includes following data :
The sun sets in the west.
To be successful, one must work hard.
def vowelCount():
fobj = open("Poem.txt", "r")
data = str(fobj.read())
cnt = 0
for ch in data:
if ch in "aeiouAEIOU":
cnt = cnt + 1
print(cnt)
fobj.close()
vowelCount()16