Python Programming

Department of Computing | Imperial College London

book

Lesson 5

Writing Reusable and Self-explanatory Programs

  • Chapter 1: Introduction
  • Chapter 2: Shortcut assignment statements
  • Chapter 3: Custom functions
  • Chapter 4: Refactoring
  • Chapter 5: Advanced function features
  • Chapter 6: Function scope
    • [6.1] Local scope
    • [6.2] Local scope across functions
    • [6.3] When one shares the same name
    • [6.4] Python scopes
    • [6.5] Stack trace
    • [6.6] Check your understanding of scopes
    • [6.7] Summary
  • Chapter 7: Style conventions for functions
  • Chapter 8: git branch
  • Chapter 9: Refactoring the robot
  • Chapter 10: Debugging and testing
  • Chapter 11: Summary

Chapter 6

Function scope

Rough estimated time needed
20 mins

Previous Next

Page designed by Josiah Wang

Department of Computing | Imperial College London