[Tutor] python 3.3 split method confusion
Christian Alexander
christian.h.alexander at gmail.com
Sat Jan 4 15:10:36 CET 2014
Hello fellow tutors,
I am curious to know why the split() method does not output the arbitrary
delimiter that is passed as an argument? For example:
string1 = "this,is,just,another,string"
print(string1.split(","))
I understand the the above code simply states, "break at every ' , ' ".
But why is the delimiter not printed as well?
--
Regards,
Christian Alexander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140104/0961ba11/attachment.html>
More information about the Tutor
mailing list