+ 1
What is split() And how to use?
I in front of a python challenge
1 Réponse
+ 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)
I in front of a python challenge