Nov. 25, 2020
2:21 a.m.
25.11.20 06:29, Mathew M. Noel via Python-ideas пише:
2.) If circular indexing is used then instead of using a double FOR loop to go through a loop twice we can iterate from 0 to 2n !
If you just need to iterate list indices twice, iterate range(-n, n) instead of range(n).