PythonHub
Link
click to show
click to show
loopinfo: let your for loop know if it is on the first or last item
Python loops do not know where they are. loopinfo adds loop.first, loop.last, loop.index, loop.count, previous, next and more.
https://pypi.org/project/loopinfo/
1 · 102 ·