Jan-17-2019, 06:10 PM
The key is that range can take a third parameter called step:
>>> list(range(2, 10, 2)) [2, 4, 6, 8] >>> list(range(2, 10, 3)) [2, 5, 8]
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures