Due Monday, October 9
The following homework problems relate to code that has already been written and can be found in /home/rws/HomeworkExercises/HW4 on the ling402 server.
For one of the errors it will help to remember that unlike awk, which allows you to increment a value of a key in an associative array, in python you have to first set that key to some value so that there will be an entry in the associative array. (You will know by now that associative arrays in python are called dictionaries.)
Pay attention to the comment at the top of the program since it describes how the program is supposed to behave.
Watch out: if you want a tuple you must indicate it as, e.g., ("foo",) and not ("foo"). The latter will not be interpreted by python as a tuple.
(As with problem 1, you do not need to understand how the invocation to sort works to do this problem.)