I'm using range() function to execute a for loop in python like
for i in range(5):
print(i)
print(i)
I'm wondering why the final print prints i with value of 4 instead of 5? I thought the final execution of the final loop will increase i to the value of 5 which breaks the conditional? Thanks!