Last elements of a list

a = [4, 7, 9] → a[-1] = 9

You can also choose a level by clicking a star.

About the course

Description
Negative indexes: a[-1] is the last element
More information
Working with lists and strings in Python. Indexes start at zero.
Sample question
a = [4, 7, 9] → a[-1] = 9
Author
Jiří Preisler
Version
1.0