Nov 12
In class we worked a bit more on the cards program
that we started Tuesday. Turns out there were
several bugs in it. One that works a bit better is
attached here.
Questions about anything at all?
Today's topics
- Continue to look at the poker homework assignment - see Tuesday's notes.
- Discuss possible final project topics. (Proposal is in this week's homework.)
- Play around with counting words in Moby Dick (practice with dictionaries, input/output, lists, words).
$ time ./count_words.py
Counting words in 'moby_dick.txt'...
done. Processed 208433 words in 22447 lines.
Top 100 words are
1 14065 : the
2 6437 : of
3 6257 : and
4 4534 : a
5 4489 : to
6 4048 : in
7 2881 : that
8 2484 : his
....
I've posted assignments for the remainder of the semester,
and encourage you to plan accordingly.