list_index.py 89 B

12345678
  1. x = [1, 2]
  2. print(x[1])
  3. try:
  4. print(x[1.0])
  5. except TypeError:
  6. print("TypeError")