Aller au contenu principal
🔒 Mode aperçu. Les quinze premières leçons Foundations sont gratuites ; celle-ci est Pro. Démarrez un trial de 7 jours pour débloquer l'éditeur, les conseils AI et le reste du programme. Carte requise, annulez à tout moment dans Dashboard.Démarrer le trial de 7 jours →
⚡
← Cours›Python FoundationsModule 7 · Bibliothèque standard avancée›CAPSTONE : Téléchargeur de fichiers parallèlesmission149 / 174
+250 XP
Tâche🌐 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.
✏️ Écris ton code ici
🐍
Chargement de Python...
Téléchargement unique (~1 Mo). Ensuite, c’est instantané.
📊 Résultat
Cliquez sur Exécuter pour voir le résultat...