Skip to content

Cjames21082/DictionaryFun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Exercise 6

Write a program, wordcount.py, that opens a file named on the command line and counts how many times each space-separated word occurs in the file. Your program should then print those counts to the screen.

Extra Credit

  • Remove punctuation.
  • Make ranking case-insensitive.
  • Sort output from the highest frequency words to the lowest frequency words.
  • Sort words having the same frequency alphabetically.

About

Sorting a Dictionary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages