11 Creating an authorship identification program
This chapter covers
- Writing an authorship identification program using top-down design
- Learning about refactoring code and why you would do it
In chapter 7, we learned about problem decomposition and top-down design when we wrote our Spelling Suggestions program. Here, we’re going to take top-down design to the next level and solve a much larger problem. We’re still doing the same thing as in chapter 7: dividing a problem into subproblems, and further dividing those subproblems into sub-subproblems as needed. And, just like before, we’re looking to design functions with a small number of parameters that return a meaningful and useful result to their caller. It’s also a good sign if we’re ...
Get Learn AI-Assisted Python Programming, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.