Przejdź do treści głównej
← KursyAI Engineering with PythonModule 0 · Before you startWymagania wstępne – co powinieneś wiedzieć przed tym utworempredict1 / 105
+25 XP
Zadanie🌐 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.
Przewiduj wynik

Przeczytaj kod uważnie

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

Co wypisze program? Napisz tutaj:

💬 Dyskusja

Zadaj pierwsze pytanie lub podziel się wskazówką.
Zaloguj się aby dołączyć do dyskusji. Czytanie jest darmowe.
Ładowanie dyskusji…