Mega Code Archive
Categories
/
Python Tutorial
/
List
When you use a negative index, Python counts from the right
The last element is at position –1. greeting = 'Hello' print greeting[-1]