Naar hoofdinhoud
πŸ”’ Voorbeeldmodus. De eerste vijftien Foundations-lessen zijn gratis; deze is Pro. Start een 7-daagse trial om de editor, AI-hints en de rest van het curriculum te ontgrendelen. Kaart vereist, op elk moment opzegbaar in Dashboard.Start 7-daagse trial β†’
⚑
← Cursussenβ€ΊPython FoundationsModule 6 Β· Gelijktijdigheid en parallellismeβ€ΊBasisprincipes van draadsnijden: voorspel de uitvoerpredict135 / 174
+100 XP
Opdracht🌐 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.
Voorspel uitvoer

Lees de code zorgvuldig

import threading

def worker(name):
    print(name)

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

Wat zal het programma uitprinten? Schrijf hier: