On the Splitting Strings II section, I need help deciphering how the solution provided for question 2 works.
Here is the link to the exercise:
The challenge is to create a list with only the last name of the author from the authors’ string.
I am confused how the for loop action of appending the character in the string, split by a space, and looking at the index -1, brings up only the last name of the author in the string.
Can someone please help me breakdown what is happening in the for loop, specifically in the action part of the loop?
authors = "Audre Lorde,Gabriela Mistral,Jean Toomer,An Qi,Walt Whitman,Shel Silverstein,Carmen Boullosa,Kamala Suraiyya,Langston Hughes,Adrienne Rich,Nikki Giovanni" author_last_names =  for name in author_names: author_last_names.append(name.split()[-1]) print(author_last_names)