SyntaxFix
Write A Post
Hire A Developer
Questions
Choose one you need:
>>> s = "Rajasekar SP def" >>> s.split(' ') ['Rajasekar', 'SP', '', 'def'] >>> s.split() ['Rajasekar', 'SP', 'def'] >>> s.partition(' ') ('Rajasekar', ' ', 'SP def')
str.split and str.partition
str.split
str.partition