https://keroseneheaterreview.blogspot.com/2024/02/last-element-in-python-iterator.html
Last Element In A Python Iterator