Class 12th CBSE CS
Write a program to count number of words in a file.
Solution: –
fin=open("D:\\python programs\\Story.txt",'r') str=fin.read( ) L=str.split() count_words=0 for i in L: count_words=count_words+1 print(count_words)

Fun & Easy to follow

Works on all devices

Your own Pace

Super Affordable
Popular Videos

UX for Teams
Learn the basics and a bit beyond to improve your backend dev skills.

Chris Matthews
Designer

SEO & Instagram
Learn the basics and a bit beyond to improve your backend dev skills.

Chris Matthews
Designer