Delete comment from: The History of Python

rainy said...

Another more general example where this is useful is iterating backwards and wrapping over a list (this can also be done with itertools but that's a bit more verbose and complex):

i = end = 15
while True:
val = mylist[i]
i-=1
if i==end: break

May 20, 2016, 11:29:53 AM


Posted to Why Python's Integer Division Floors

Google apps
Main menu