Python Obtenha o último elemento do iterador
*_, last = iterator # for a better understanding check PEP 448
print(last)
Important Ibex
*_, last = iterator # for a better understanding check PEP 448
print(last)