AllenDowney / ThinkPython2

LaTeX source and supporting code for Think Python, 2nd edition, by Allen Downey.
Other
2.49k stars 1.65k forks source link

Completed the "To Do(s)" #93

Closed abhitrueprogrammer closed 2 years ago

abhitrueprogrammer commented 2 years ago

Added the sorted method for sorting the list of letters. Also added setdefault instead of using if statements (didn't use defaultdict, as no prior knowledge of it is given in the book (AFAIK) and it imports a module, which is unnecessary).

AllenDowney commented 2 years ago

Looks good, but I didn't want to use those features in the solution because they had not been presented yet in the book.