Write a python program to count number of articles (a,an,the) in a text file.
Answers
Answered by
1
Write a Python program to count the number of lines in a text file.
- Contain of text.txt. ...
- Sample Solution:-
- Python Code: def file_lengthy(fname): with open(fname) as f: for i, l in enumerate(f): pass return i + 1 print("Number of lines in the file: ",file_lengthy("test.txt")) ...
- Flowchart:
- Python Code Editor:
Similar questions
Math,
4 months ago
Computer Science,
4 months ago
Math,
9 months ago
Physics,
9 months ago
Math,
1 year ago