Welcome! Enter your question below. Please use words like "Who, What, Where, When, Why, How, etc..." in your question. Nothing to ask? Click here for a random, un-answered question.

How do you use split in Python?

1,062,494questions on
Add New Page
Talk0 Share

'python is so good'.split(' ')

returns a list like this:

['python', 'is', 'so', 'good']

"banana".split('a') -> ['b', 'n', 'n']

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.