on my list I want to detect when it's -1 or 0 in length otherwise i want it to give me the second [1] index : The function second_item below returns the second item in the list l.

However, what if l has length 0 or 1? Then taking the second item makes no sense and will result in an error.

Change the code so that it detects these cases and returns -1 for lists of length 0 or 1, rather than causing an error.

For any other list, the function should still return the second item.

**def second_item(l):
    if len(l) <= 1:
        return l
    else:
        return l[1]**