def select_second(L):
if len(L)>1:
return L[1]
return None
print(select_second([1,2]))
print(select_second([1]))
def select_second(L):
if type(L) is list:
if len(L)>1:
return L[1]
return None
def l(_list):
try:
return _list[1]
except:
return None