Main.Lab9 History

Hide minor edits - Show changes to markup

April 04, 2013, at 02:31 PM MST by 129.82.44.223 -
Changed line 5 from:

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.

to:

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.

April 04, 2013, at 02:06 PM MST by 129.82.44.223 -
Changed lines 1-2 from:

Lab8

to:

Lab9

Changed line 5 from:

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.

to:

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.

March 22, 2010, at 11:07 AM MST by 10.84.44.69 -
Changed lines 1-3 from:

Lab8

Python dictionaries

to:

Lab8

Python dictionaries

March 22, 2010, at 11:07 AM MST by 10.84.44.69 -
Added lines 1-5:

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.