Python for loop range with times instead of adding index

You will be able to do the following in Python 3.8, using the assignment expressions:

i = 1
while (i := i*2) < INT_MAX:
   ...