Flashes Home Search Notifications Sign in Post
Rodrigo Girão Serrão 🐍🚀 @mathspp.com · Oct 31

This is your friendly reminder that str.split accepts a parameter to determine the maximum number of splits. You get up to n splits and the remainder of the string.

1 likes 1 replies

?

Replies

Tiago Montes · Oct 31

…sometimes, str.partition is your friend, too.

Legal

Privacy Policy Terms and Conditions

Contact

Support FAQs

Follow

Bluesky Instagram Threads
Flashes for Bluesky Get it on the App Store