generated from mwc/lab_iteration
If we wanted to print up to and including the maximum value, should it fall appropriately into the range (maximum = 100, for example, we might want to print 0,2,4,...,96,98,100) we could make the max value in the range() function "maximum + 1" to make the endpoint sort of pseudo-inclusive of that new target value. It's not so much an uncertainty about ranges, but I always seem to run into an indexing problem when utilizing ranges in a loop to iterate through a string or list or some array. I know I'm probably going to have the problem, I try to plan around it, I still end up with the problem, so I at least know where the issue lies when I have the inevitable error message. |
||
---|---|---|
.commit_template | ||
drawtiles.py | ||
poetry.lock | ||
pyproject.toml | ||
ranges.py | ||
square.py | ||
tile.py | ||
tile_grid.py |