Python Programming

Department of Computing | Imperial College London

book

Lesson 9

No Object is an Island

  • Chapter 1: Introduction
  • Chapter 2: Object interaction
  • Chapter 3: Refactor your robot!
  • Chapter 4: More iterable objects
  • Chapter 5: List comprehension
    • [5.1] List comprehension
    • [5.2] List comprehension exercise
    • [5.3] List comprehension exercise
    • [5.4] Set and dict comprehension
    • [5.5] Dict comprehension exercise
    • [5.6] Generator expressions
  • Chapter 6: JSON files
  • Chapter 7: More classes for your robot!
  • Chapter 8: Python packages
  • Chapter 9: Exception handling
  • Chapter 10: Summary

Chapter 5

List comprehension

Rough estimated time needed
20 mins

Previous Next

Page designed by Josiah Wang

Department of Computing | Imperial College London