Teaching Object-Oriented Programming with Python
summary
Shows how Python is used to teach objects by building an inventory system in a game with concrete classes Pack, Item, Weapon and Food, demonstrating inheritance and polymorphism and using isinstance checks rather than static typing. Provides an RPG battle engine (≈1,100 lines) as starter code that students document, extend and refactor; examples include a text adventure with ASCII map and a multi-window GUI with real‑time stats. Recommends resources (Hamrick blog, How to Think Like a Computer Scientist) and argues pedagogy: one language deeply (Python) beats many shallowly.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 1:58Curriculum
- 9:45Scratch
- 10:45Python
- 12:00Framework
- 13:32ObjectOriented Approach
- 14:55ObjectOriented Example
- 21:48Useful Resources
- 22:30Task Structure
- 23:37Map Class
- 23:49Refactoring
- 24:05Example
- 26:12Questions
- 28:33Why Python
- 28:56Class Composition
- 30:14Data Classes
- 30:50Reserved Methods
- 31:53Encapsulation
related talks
08mEnd of OOP with Python
02h 46mThe How and Why of Object-oriented Programming in Python
30mTeaching Programming for the fun of IT
48mPython for Educators
01h 27mObjectionable Content
33mTeaching Python: Ten+ Years of Successes, Trials and Tribulations
19mObjects and classes in Python (and JavaScript)
19mObjects and classes in Python (and JavaScript)
