Explain the use of the split function in python?



Explain the use of the split function in python?..

Answer / Tanmay Gupta

The Python's built-in split() method is used to break a string into parts based on a specified separator (default is any whitespace). It returns a list where each word is an element. For example, 'my string'.split(' ') returns ['my', 'string'].

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is web scraping?

1 Answers  


Can you name ten built-in functions in python and explain each in brief?

1 Answers  


What is the most popular ide for python?

1 Answers  


What is constructor in python?

1 Answers  


Explain me what is python and explain some of its benefits?

1 Answers  


What is a module and package in python?

1 Answers  


Explain the use of the ‘nonlocal’ keyword in python?

1 Answers  


How do you make a higher order function in Python?

1 Answers  


What is the best python interpreter?

1 Answers  


How will you check python version?

1 Answers  


What is python coded in?

1 Answers  


How to call an external command in python?

1 Answers  


Categories