Advertisement
rdrewd

sort.py.out.fail

Oct 10th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. $ python sort.py
  2. i: 0 list: []
  3. Traceback (most recent call last):
  4.   File "sort.py", line 14, in <module>
  5.     sort(l)
  6.   File "sort.py", line 7, in sort
  7.     if l[pos] > l[pos+1]:
  8. IndexError: list index out of range
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement