Threads, Processes or Asyncio in Python?

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • easy
  • Pro

You have two slow Python scripts: one downloads thousands of web pages, the other resizes thousands of images. Explain when to use threads, processes or asyncio, and which fits each script.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →