What does means by split do in python?



What does means by split do in python?..

Answer / Satyam Krishna Gupta

The split() method in Python is used to divide a string into a list where each word is a list item. It breaks the string at spaces and other specified separators. For example: 'Hello World'.split() returns ['Hello', 'World'].

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Should I learn r or python first?

1 Answers  


What is data hiding in python?

1 Answers  


What is a script file in python?

1 Answers  


Is python shell scripting?

1 Answers  


What is anonymous function or lambda function?

1 Answers  


How many keywords are there in python?

1 Answers  


Understanding python super() with __init__() methods?

1 Answers  


How to create an empty dataframe?

1 Answers  


What are the benefits of python?

1 Answers  


How you can convert a number to a string?

1 Answers  


How to comment multiple lines in python?

1 Answers  


Can a class extend itself?

1 Answers  


Categories