KnowledgeBoat Logo
|

Computer Science

…………… function will always return tuple of 3 elements.

  1. index()
  2. split()
  3. partition()
  4. strip()

Python String Manipulation

2 Likes

Answer

partition()

Reason — The partition() function is used to split the given string using the specified separator and returns a tuple with three parts: substring before the separator, separator itself, a substring after the separator.

Answered By

3 Likes


Related Questions