Перейти к основному содержимому
🔒 Режим превью. Первые 15 уроков Foundations — бесплатные; этот — Pro. Запусти 7-дневный trial чтобы открыть редактор, AI-подсказки и остальной курс. Нужна карта, отмена в Dashboard в любой момент.Начать 7-дневный trial →
⚡
← Курсы›Python FoundationsМодуль 6 · Конкурентность и параллелизм›ThreadPoolExecutor — прогнозирование выводаpredict139 / 174
+100 XP
Задание🌐 shown in EN
📝 **Task:** Predict what the code prints. Hint: pool.map keeps input order. 📋 Edit the starter code below. Tests run automatically. 💡 **Hint:** Re-read the theory if you get stuck.
Предскажи вывод

Прочти код внимательно

from concurrent.futures import ThreadPoolExecutor

def double(x):
    return x * 2

with ThreadPoolExecutor(max_workers=2) as pool:
    results = list(pool.map(double, [1, 2, 3]))
print(results)

Что выведет программа? Напиши здесь: