Medium
Code Logic Explainer
Explain the logic of a code snippet for a beginner.
📝 提示内容
Explain the logic of the following code snippet line-by-line as if you were teaching a complete beginner. Avoid using jargon where possible, and provide an analogy for how the loop functions.