Computer Science, asked by Anonymous, 8 months ago

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 saransrini03
0

open = open("POEM.txt")

count = open.count()

print(count)

Similar questions