# 1
def select_second(L):
if len(L) <= 1:
return None
return L[1]
#2
def losing_team_captain(teams):
return teams[-1][1]
#3 第三题缺失变量d
lengths = [3, 2, 0]
#4:
def fashionably_late(arrivals, name):
pos = arrivals.index(name) + 1
if pos > len(arrivals)/2 and pos < len(arrivals):
print("{} was fashinably late".format(name))
else:
print("{} was not fashinably late".format(name))