Be careful with lists

Report a typo

You are given a list of four words. However, when you try to get the last element of the list as shown below, an error occurs.

numbers = ['one', 'two', 'three', 'four']
print(numbers[4])

What exception will be raised? Enter its name in the text field below.

Enter a short text

Create a free account to access the full topic