Lab8
Python dictionaries
Write a function word_count(file_name) that returns a python dictionary that counts how many times each word occurs in the text in the file provided as input. Try to the best of your ability to remove punctuation marks.
|
cs580: programming for the life sciences |
|
Write a function word_count(file_name) that returns a python dictionary that counts how many times each word occurs in the text in the file provided as input. Try to the best of your ability to remove punctuation marks.