Lists
3 / 21
EasyOutput prediction

Negative indexing

What does this code print?

nums = [10, 20, 30, 40, 50]
print(nums[-2])

← → arrow keys to navigate

Sign in to save your progress.