Find an error

Report a typo

Which line of code will cause an error?

fruits = ["apple", "pear", "orange", "mango", "peach"]

print(fruits[0])     # 3
print(fruits[-5])    # 4
print(fruits[5])     # 5
print(fruits[4-2])   # 6
Select one or more options from the list
___

Create a free account to access the full topic