About Us

Python partition() method splits the string from the string specified in parameter. It splits the string from at the first occurrence of parameter and returns a tuple. The tuple contains the three parts before the separator, the separator itself, and the part after the separator.

It returns an empty tuple having seperator only, if the seperator not found.

The method signature is given below.