Source Code
f=open("demo.txt")
str=f.read()
count=0
for i in str:
if i=='a' or i=='e' or i=='i' or i=='o' or i=='u':
count+=1
print(count)
f.close()
OUTPUT
this is python programming and PHP programming.10
Source Code
f=open("demo.txt")
str=f.read()
count=0
for i in str:
if i=='a' or i=='e' or i=='i' or i=='o' or i=='u':
count+=1
print(count)
f.close()
this is python programming and PHP programming.10
Hello, my name is G Krishna. I'm Creating this blog for the students who are beginners.
Learn More →
This blog is so nice to me. I will keep on coming here again and again. Visit my link as well.. free word counter
ReplyDelete