Preskoči na glavni sadržaj
🔒 Način pregleda. Prvih petnaest Foundations lekcija je besplatno; ova je Pro. Pokrenite 7-dnevni trial da otključate editor, AI savjete i ostatak programa. Kartica obavezna, otkažite bilo kada u Dashboard.Pokreni 7-dnevni trial →
⚡
← Kolegiji›Python FoundationsModul 6 · Konkurencija i paralelizam›Osnove niti — predvidite izlazpredict135 / 174
+100 XP
Zadatak🌐 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.
Predvidi izlaz

Pažljivo pročitaj kod

import threading

def worker(name):
    print(name)

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

Što će program ispisati? Napiši ovdje: