Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.Start 7-day trial →
← CoursesAI Engineering with PythonModule 6 · Frontier AI EngineeringVoice agent architecturepredict102 / 105
+110 XP
Task
📝 **Task:** Predict what this Python snippet prints. ```python stt = 280 claude_ttft = 650 # streaming + cached prefix + effort=low + Sonnet tts = 470 total = stt + claude_ttft + tts cap = 1500 print(f"total={total}ms") print("under_cap" if total < cap else "over_cap") print(f"headroom={cap - total}ms") ``` 📋 Implement the function above. Tests run automatically. 💡 **Hint:** Re-read the theory if stuck.
Predict the output

Read the code carefully

stt = 280
claude_ttft = 650  # streaming + cached prefix + effort=low + Sonnet
tts = 470

total = stt + claude_ttft + tts
cap = 1500

print(f"total={total}ms")
print("under_cap" if total < cap else "over_cap")
print(f"headroom={cap - total}ms")

What will the program print? Write here:

💬 Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…