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).
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/7P5J7JQ6XZNB5YV3AJORA25LIINMDQHE/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to