Write a function in python to read lines from file “POEM.txt” and count how many times the word “Corona” exists in file. For e.g. if the content of file is : O Corona O Corona Jaldi se tum Go na Social Distancing ka palan karona sabse 1 meter ki duri rakhona Lockdown me ghar me ho to online padhai karona O Corona O Corona Jaldi se tum Go na
Answers
Answered by
0
open = open("POEM.txt")
count = open.count()
print(count)
Similar questions
Math,
3 months ago
Social Sciences,
3 months ago
Chemistry,
3 months ago
English,
7 months ago
English,
11 months ago