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
    • [9.1] Files
    • [9.2] Opening and reading text files
    • [9.3] Opening and reading binary files
    • [9.4] Writing to files
    • [9.5] Exercise
    • [9.6] Related methods and modules
  • Chapter 10: Input validation
  • Chapter 11: Summary

Chapter 9

Reading and writing files

Rough estimated time needed
20-30 mins

Previous Next

Page designed by Josiah Wang

Department of Computing | Imperial College London