Get your own Python server Result Size: 625 x 565
x
 
x = ["apple", "banana", "cherry"]
try:
  print(x[5])
except IndexError:
  print("You are trying to access a item that does not exist!")
except:
  print("Something else went wrong")
You are trying to access a item that does not exist!