ex_lst = ['hi', 'how are you', 'bye', 'apple', 'zebra', 'dance']
def second_let(x):
lst= []
for wrd in x:
lst.append(wrd[1])
return lst
print(second_let(ex_lst))
print(sorted(second_let(ex_lst)))
sorted_by_second_let= sorted(ex_lst, key= second_let)