Zum Hauptinhalt springen
🔒 Vorschaumodus. Die ersten fünfzehn Foundations-Lektionen sind kostenlos; diese hier ist Pro. Starte einen 7-Tage-Trial, um den Editor, AI-Hinweise und den Rest des Lehrplans freizuschalten. Karte erforderlich, jederzeit im Dashboard kündbar.7-Tage-Trial starten →
⚡
← Kurse›Python FoundationsModul 7 · Erweiterte Standardbibliothek›CAPSTONE: Paralleler Datei-Downloadermission149 / 174
+250 XP
Aufgabe🌐 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.
✏️ Schreibe deinen Code hier
🐍
Python wird geladen...
Einmaliger Download (~1 MB). Danach läuft alles sofort.
📊 Ergebnis
Klicke auf Ausführen, um das Ergebnis zu sehen...