Computer Science, asked by abdulkhasmisyed, 6 hours ago

`Write a method in python to count the total number 'India' of word in a file. ​

Answers

Answered by Anonymous
0

Answer:

file = open("C:\data.txt", "rt")

data = file.read()

words = data.split()

print('Number of words in text file :', len(words))

Hope it helps!! Don't forget to give a thanks!

Similar questions