Jun 18, 2021
Hi,
You can use lst[-1] also that correct.
Do you know these operators method.
We can also use lst.pop() which will get same result.
We can reverse the list and get lst[0] then it point last element.
More accurate reverse + next() this will also get last element.
So Their is many methods to do a thing. I'm targeting all audience Beginners and Professional that why i use the common way of indexing.
Thank you Peter Kilczuk
Hope you had a great day