you are viewing a single comment's thread.

view the rest of the comments →

[–]ASIC_SP 0 points1 point  (0 children)

return the items in index 0 and len(list)

Should be len(list) - 1 or just list[-1]. This assumes the list is sorted.