Consider the following snippet of Python code:
x = 14
for k in range(x):
x += 1
At the end of execution, x is equal to 28.
My question: shouldn't this code loop forever? At each iteration, it checks if k is less than x. However, x is incremented within the for loop, so it has a higher value for the next comparison.