A Tip A Day – Python Tips #11: Split string using partition, rpartition & splitlines
There are various ways to split strings. The popular split function we use often is split(), rsplit(). Apart from these 3 there are a few more functions that is very useful in string manipulations.