79595580

Date: 2025-04-27 23:49:48
Score: 1
Natty:
Report link

The keyword break basically stops the loop, so, since you're iterating through a range from 0 to 4, it'll execute the first loop, and, after printing '0', it'll break the loop, so that's why it's only printing 0. You should just remove break and it's done!

for i in range(5):
    print(i)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Matias Fernandez