Could someone remind me where we can find explanation in previous lessons that says we can write methods “.split” and index "[-1] in the same line like here:
some_str.split()[-1]? Because i don’t really remember anything like that. But i do remember that there was about different methods in one line, but not indexes.
Also another solution to the second part of this exercise is by list comprehension:
author_last_names = [full_name.split()[-1] for full_name in author_names]
If i am not mistaken.