Neil the main difference is that the delimiter is included in the return with partition(). For split(), the delimiter is removed and effectively discarded.
Thanks for reading, I appreciate the support!
Neil the main difference is that the delimiter is included in the return with partition(). For split(), the delimiter is removed and effectively discarded.
Thanks for reading, I appreciate the support!
Distraction-free reading. No ads.
Organize your knowledge with lists and highlights.
Tell your story. Find your audience.
Read member-only stories
Support writers you read most
Earn money for your writing
Listen to audio narrations
Read offline with the Medium app
Top writer with 2.5M+ views. https://medium.com/@jhsu98/membership