In Python, to get the last item in a list, no matter how long the list is, you can use an index of:

1
-1
2
1
3
0
4
∞ 

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation