To write a python program for getting the word count from the contents of a file using command line arguments.
PC Anaconda - Python 3.7
start the program
import the file
open the file
write the function to count the count
print the result
end the program
#This program developed by: Yuvaraj v
#number:23013769
import sys
f1=open(sys.argv[0])
data=f1.read()
word=data.split()
print("The word count is",len(word))
f1.close
Thus the program is written to find the word count from the contents of a file using command line arguments.