Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ python sort.py
- i: 0 list: []
- Traceback (most recent call last):
- File "sort.py", line 14, in <module>
- sort(l)
- File "sort.py", line 7, in sort
- if l[pos] > l[pos+1]:
- IndexError: list index out of range
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement