Python, Prompt Engineering, Data Science — Build the Skills Employers Want Now
Pass the PMP® Exam on Your First Try — Expert-Led Training
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
Explore the process of refactoring a monolithic Python function into smaller, modular, and testable components in this 26-minute tutorial. Learn essential mental models for writing modular Python functions, enhancing code maintainability, testability, and predictability. Follow along as the instructor demonstrates breaking down a large function into several smaller ones, ideal for unit testing. This video is part of a series on building a Python package for a terminal-based productivity tool. For a comprehensive learning experience, consider watching the full playlist, which includes previous episodes on TaskWarrior, command-line productivity scoreboards, and publishing Python packages. Access the code repository on GitHub and the published package on PyPI to practice implementing these concepts in your own projects.
Syllabus
Build w/ Python 4: Python Code Refactoring (Modular python functions)
Taught by
Samuel Chan