Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages