str.rsplit()


Introduction
Return a list of the words in S, using sep as the delimiter string, starting at the end of the string and
working to the front.

Syntax
S.rsplit(sep=None, maxsplit=-1) -> list of strings

Parameters
s=string

Examples
The return are:
 >>> "Python Lake".rsplit()
['Python', 'Lake']
>>> 
>>> "Python Research Centre".rsplit()
['Python', 'Research', 'Centre']
>>> 


Comments