Computer Science, asked by ankushgharahi, 4 months ago

Write a program for TXT file in python​

Answers

Answered by kvsatyam07
0

Answer:

Microsoft office word wordpad

Answered by Anonymous
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
Anonymous: u r welcome :)
Similar questions