AI Product Expert Certification - Master Generative AI Skills
Master Windows Internals - Kernel Programming, Debugging & Architecture
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn how to break down Python programs into smaller, independent functions that can be easily read, reused, and tested in this comprehensive 50-minute instructional unit. Discover how teams of programmers continuously write and revise code without breaking things by mastering modular programming concepts. Explore function definitions with parameters and return values while developing your own game components. Master the fundamentals of local and global scope, trace function calls to understand program execution, and work with nested function calls for more complex programming scenarios. Apply program design principles through practical examples including creating a deck of cards system and building a Nim game. Develop essential software development skills by learning to create modules, implement unit testing strategies, and debug code using test cases. Gain hands-on experience with modular programming techniques that form the foundation of professional software development practices.
Syllabus
00:00 : games & modularity
04:04 : function definitions
08:47 : tracing function calls
14:21 : local & global scope
19:17 : nested function calls
25:41 : program design - deck of cards
31:06 : creating modules
35:33 : program design - Nim game
41:28 : unit testing
46:14 : debugging with test cases
Taught by
Khan Academy