Www.ecedept.com

PROGRAM FOR COMMAND LINE ARGUMENTS ( WORD COUNT ) PROGRAM TO FIND MOST FREQUENT WORDS IN A TEXT READ FROM A FILE. Remove this Linefrom sys import argv. from collections import Counter . f = open( argv [1]," r ") c = Counter ( f.read ( ) . split( ) ) print( " Number of words in the file : " , c ) from collections import Counter . f=open( "ex.txt", "r" ) c=Counter( f.read ( ) . … ................
................