Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

split() without argument

string= "a a  a   a"
words = string.split()

print(words)
# ['a', 'a', 'a', 'a']
Source by discuss.codecademy.com #
 
PREVIOUS NEXT
Tagged: #argument
ADD COMMENT
Topic
Name
2+4 =