On Sun, 19 Jul 2015 17:35:03 +0100, MRAB wrote: > rsplit -> one line.
def lastWordFirst(s):
return " ".join(reversed(s.rsplit(" ", 1)))
--
Denis McMahon, [email protected]
--
https://mail.python.org/mailman/listinfo/python-list
On Sun, 19 Jul 2015 17:35:03 +0100, MRAB wrote: > rsplit -> one line.
def lastWordFirst(s):
return " ".join(reversed(s.rsplit(" ", 1)))
--
Denis McMahon, [email protected]
--
https://mail.python.org/mailman/listinfo/python-list