Ugrás a fő tartalomra
← KurzusokAI Engineering with PythonModule 0 · Before you startElőfeltételek – amit tudnod kell a szám előttpredict1 / 105
+25 XP
Feladat🌐 shown in RU
Read the snippet below carefully. Predict the exact output (both lines). This exercises the patterns ai-eng-01 opens with: dict access + string slicing on an API-key-shaped value. If you can predict this you're ready; if you can't, take a Foundations refresher first.
Találd ki a kimenetet

Olvasd el a kódot figyelmesen

config = {"api_key": "sk-ant-2026-demo-XYZ"}
key = config.get("api_key", "missing")
print(key[:6])
print(key[-3:])

Mit ír ki a program? Írd ide:

💬 Beszélgetés

Légy az első — tegyél fel kérdést vagy oszd meg egy tippet.
Jelentkezz be hogy csatlakozz a beszélgetéshez. Az olvasás ingyenes.
Beszélgetés betöltése…