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
Import sys
Open file using open().
Use the loop
Use len to count number of words
Give print
Thus the program is written to find the word count from the contents of a file using command line arguments.