No products in the cart.

Write a function to find out …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Write a function to find out number of consonants in a text file ' Story.txt '.
  • 1 answers

Tushar Bhardwaj 4 years, 1 month ago

f=open("Story.txt","r") def func() for line in f: c=0 w=line.split(" ") c=c+len(w) print("No of words present in the file:"+c)
http://mycbseguide.com/examin8/

Related Questions

What are called tokens
  • 2 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App