Python Programming

Department of Computing | Imperial College London

book

Lesson 9

No Object is an Island

  • Chapter 1: Introduction
  • Chapter 2: Object interaction
    • [2.1] Battle game!
    • [2.2] Objects interact with one another
    • [2.3] Using other objects
    • [2.4] Dependency exercise
    • [2.5] Aggregation and composition
    • [2.6] Aggregation vs. composition
    • [2.7] Aggregation exercise
  • Chapter 3: Refactor your robot!
  • Chapter 4: More iterable objects
  • Chapter 5: List comprehension
  • Chapter 6: JSON files
  • Chapter 7: More classes for your robot!
  • Chapter 8: Python packages
  • Chapter 9: Exception handling
  • Chapter 10: Summary

Chapter 2

Object interaction

No man is an island entire of itself; every man is a piece of the continent, a part of the main.
John Donne (1642)

Rough estimated time needed
30-40 mins

Previous Next

Page designed by Josiah Wang

Department of Computing | Imperial College London