Lists
10 / 21
EasyOutput prediction

Negative index with assignment

What does this code print?

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

← → arrow keys to navigate

Sign in to save your progress.