split is the inverse of join, and is used to split a string into a sequence : Split : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Split »

 

split is the inverse of join, and is used to split a string into a sequence


print '1+2+3+4+5'.split('+'

print '/usr/bin/env'.split('/'

print 'Using the default'.split()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Split