2.0/10
public roast
verdict: needs_serious_help
Python
5 lines
3 focus points
"Code that goes nowhere, literally."
Here is the breakdown of what hurt your score, plus a cleaned-up version you can use as a starting point. If the roast feels fair, share it. If it feels unfair, paste better code next time.
score
2.0 / 10
fixed output
5 lines
line delta
0
// summary
Your strongest next move is to fix the highest-severity issue first, then compare the cleanup against the original before shipping anything.
// sharing
Public roasts can land in the leaderboard. Private reviews stay out of it and are better for real code you do not want exposed.
// compare
Use the original and fixed blocks below to spot naming, logic, and structure changes quickly instead of reading the whole thing twice.
//your_submission
InfiniteIncompetence.py
def count_to_ten():
i = 0
while i < 10:
print(i)
i += 1 //detailed_analysis
!
Infinite Loop
You managed to create a loop that doesn't actually loop due to the misplaced increment. Congrats, you've achieved a new level of incompetence.
!
Logic Fail
It seems you thought the loop condition would magically update the counter for you. Newsflash: it doesn't. You need to increment inside the loop, not after it.
?
Lack of Basic Understanding
This code reeks of a complete disregard for basic programming principles. Did you even try to run this before submitting it, or was this a half-hearted attempt at trying to look like you know what you're doing?
//suggested_fix
original: 5 lines · fixed: 5 lines
InfiniteIncompetence_fixed.py
+def count_to_ten():
+ i = 0
+ while i < 10:
+ print(i)
+ i += 1