Перейти к основному содержимому
🔒 Режим превью. Первые 15 уроков Foundations — бесплатные; этот — Pro. Запусти 7-дневный trial чтобы открыть редактор, AI-подсказки и остальной курс. Нужна карта, отмена в Dashboard в любой момент.Начать 7-дневный trial →
⚡
← Курсы›Python FoundationsМодуль 6 · Конкурентность и параллелизм›Основы многопоточности — прогнозирование выводаpredict135 / 174
+100 XP
Задание🌐 shown in EN
📝 **Task:** Predict what the program prints.\n\nThe thread runs \`worker("A")\` to completion (\`join()\` waits), then the main thread continues. Output is deterministic because start+join serializes execution.\n\nExpected: two lines. 📋 Edit the starter code below. Tests run automatically. 💡 **Hint:** Re-read the theory if you get stuck.
Предскажи вывод

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

import threading

def worker(name):
    print(name)

t = threading.Thread(target=worker, args=("A",))
t.start()
t.join()
print("done")

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