Write a program for TXT file in python
Answers
Answered by
0
Answer:
Microsoft office word wordpad
Answered by
1
Answer:
hello,
Explanation:
# python program to open to a text file named india.txt and find the number of times India occurs.
f=open("india.txt","r")
s=f.read()
print(s)
l=s.split()
print(l)
count=0
for i in l:
if i.upper()=="INDIA":
count+=1
else:
continue
print(count,"is the count")
___________________
hope it helps you
please mark brainliest
@ItzSnowySecret07
ankushgharahi:
thank u
Similar questions