fork download
  1. try:
  2. list = [0,1,2,3,4]
  3. x = list[5]
  4. print("I am Done")
  5. except IndexError:
  6. print("Index out of bound")
Success #stdin #stdout 0.01s 7148KB
stdin
Standard input is empty
stdout
Index out of bound