medium
Identify Logic Error
Find and explain the logic error in a provided Python snippet.
📝 Treść promptu
Analyze the following Python code snippet and identify the logic error that causes an infinite loop. Provide the corrected code and a brief explanation of why the original code failed. Snippet: x = 10; while x > 0: print(x); x = x + 1