Main.Lab9 History
Hide minor edits - Show changes to markup
Write a function word_count(file_name) that returns a python dictionary that counts how many times each word occurs in the text of this file. Try to the best of your ability to remove punctuation marks.
Write a function word_count(file_name) that returns a python dictionary that counts how many times each word occurs in the text of this file. Try to the best of your ability to remove punctuation marks. You can use string.translate and string.punctuation for that (their use is described at the python library documentation.
Lab8
Lab9
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.
Write a function word_count(file_name) that returns a python dictionary that counts how many times each word occurs in the text of this file. Try to the best of your ability to remove punctuation marks.
Lab8
Python dictionaries
Lab8
Python dictionaries
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.
