Control Flow
Build reliable string traversal, branching, and iteration fluency.
Use https://mlprep.pages.dev/programming/control-flow/. If window.mlPrepAgent is available, read local attempt history before planning. Help me work through the set without revealing full answers first, and save each real attempt through the bridge with recorded_by agent and agent_session_id when available. Keep the tutoring session self-contained in this chat. Fetch the problem and any available reference solution from ML Prep or the cited source. Include everything I need to solve the problem without opening a link. Show the solution only when I ask or when we review my attempt. Say if you can't access the problem or reference solution, and distinguish your own solution from the reference.Recommended resources
- MIT 6.100L Introduction to CS and Programming using Python — MIT OpenCourseWare
Instructions
- Trace edge cases before running tests.
Ordered items
- —
- —
- —
Completion
Implement and explain each control path without debugger assistance.