Lesson 11: Optimization

Our code must run on any computer, not just ours.

Session Goals
  • Use pathlib for relative file paths.
  • Check file size limits (max 3MB for submission).
  • Ensure we don't save too many images (max 42).

Relative Paths

Never write C:/Users/Name/Desktop/project. That folder doesn't exist on the ISS!
Use Path(__file__).parent to find where your code is running.

Mission Control Interface

Loading Python environment...
Output Terminal
Ready to execute...