CurriculumPython, data & AI · Week 08

Week 08 / Structure · documentation · errors · demo

Package the project.

The idea

A packaged project gives another person enough information to run and understand it. Separate reusable code from the entry point, list dependencies, document configuration, and include a small demo with honest limitations.

Keep the entry point small

def main():
    games = load_games("games.csv")
    report = summarize(games)
    print(report)

if __name__ == "__main__":
    main()

Build it

Work through these steps in your own project. Check them off as you go; your checklist stays in this browser.

Could someone else run your project from the README alone? What is the next improvement?

Notes save in this browser.