Naar hoofdinhoud
πŸ”’ Voorbeeldmodus. De eerste vijftien Foundations-lessen zijn gratis; deze is Pro. Start een 7-daagse trial om de editor, AI-hints en de rest van het curriculum te ontgrendelen. Kaart vereist, op elk moment opzegbaar in Dashboard.Start 7-daagse trial β†’
⚑
← Cursussenβ€ΊPython FoundationsModule 7 Β· Geavanceerde standaardbibliotheekβ€ΊCAPSTONE: Parallelle bestandsdownloadermission149 / 174
+250 XP
Opdracht🌐 shown in EN
πŸ“ **Task:** Complete the function. Use the provided skeleton: \`download(url)\` should increment \`stats["ok"]\` under the lock and return \`f"got {url}"\`. Then run it on \`["a", "b", "c"]\` with a ThreadPoolExecutor(max_workers=3) and finally print \`stats["ok"]\`.\nExpected: 3 πŸ“‹ Edit the starter code below. Tests run automatically. πŸ’‘ **Hint:** Re-read the theory if you get stuck.
✏️ Schrijf hier je code
🐍
Python laden...
Eenmalige download (~1 MB). Daarna direct beschikbaar.
πŸ“Š Resultaat
Klik op Uitvoeren om het resultaat te zien...