There is a list of names of people in Russian. Something like this:
full_names = [u"Иванов Иван Иванович", u"Петров Петр Петрович"]
My task is to shorten their full name to "Last Name IO" in the most compact form. I'm trying to do this:
full_names = [u"Иванов Иван Иванович", u"Петров Петр Петрович"] short_names = [' '.join([fn.split(' ')[0],fn.split(' ')[0][1]]) for fn in full_names] This is how you can get the format "Last Name And"
Is there a more elegant way?