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
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor