Source Code:
(back to article)
fruits = ['apple', 'banana', 'cherry'] print(fruits[-1]) # Output cherry
Result:
Report an issue