Python Programming

Department of Computing | Imperial College London

book

Lesson 8

Making Objects the Main Star!

  • Chapter 1: Introduction
  • Chapter 2: Set
  • Chapter 3: Classes and attributes
  • Chapter 4: Python modules
  • Chapter 5: Objectify your robot!
  • Chapter 6: Object methods
  • Chapter 7: Add robot actions!
  • Chapter 8: Magic methods
  • Chapter 9: Reading and writing files
  • Chapter 10: Input validation
    • [10.1] Code robustness
    • [10.2] Look before you leap!
    • [10.3] Easier to ask for forgiveness
    • [10.4] LBYL vs. EAFP
    • [10.5] Exercise
  • Chapter 11: Summary

Chapter 10

Input validation

Rough estimated time needed
15-20 mins

Previous Next

Page designed by Josiah Wang

Department of Computing | Imperial College London