t518.py 154 B

12345678910
  1. list = [0, 1, 2, 3]
  2. try:
  3. print list[1 : : 0]
  4. except ValueError as e:
  5. print e
  6. try:
  7. print list[1 : 3 : 0]
  8. except ValueError as e:
  9. print e