It is because you have a break statement at the end of your loop, cutting it off after the first run.
break
Rewrite it like this:
for i in range(5): print(i)