Im trying to get the last element in each nested list such as
double list = [['Hello','how','are','you'],['I','am','fine'],['How','about','yourself']] so that it will print out ['you','fine','yourself]
I am also trying to do this all under a function such as
def last_words(): #where my double_list is already in this function
Thank you!
print( [x[-1] for x in double_list] )