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)