Ugrás a fő tartalomra
← KurzusokSenior Deep-DivesModule 0 · Before you startPrerequisites — what you should know before this trackpredict1 / 161
+25 XP
Feladat🌐 shown in EN
📝 **Task:** Read the snippet below. Predict the **exact output** (one line). This exercises the senior-grade pattern this track opens with — Python's reference semantics on mutable defaults / shared lists. If you can predict this, you're ready for sr-01 (the GIL deep-dive). If you can't, FastAPI + Project Studio first. 📋 Implement the function above. Tests run automatically. 💡 **Hint:** Re-read the theory if you get stuck.
Találd ki a kimenetet

Olvasd el a kódot figyelmesen

def add_item(item, bucket=[]):
    bucket.append(item)
    return bucket

a = add_item("x")
b = add_item("y")
print(a)
print(b)
print(a is b)

Mit ír ki a program? Írd ide: