What is split() And how to use? | Sololearn: Learn to code for FREE!

+1

What is split() And how to use?

I in front of a python challenge

4/10/2021 6:33:23 AM

Codemurai

1 Answer

New Answer

+6

The split() method splits a string into a list. You can specify the separator, default separator is any whitespace. Ex:- txt="Hello world!!" x=txt.split() print(x)