DEV Community

miko1112
miko1112

Posted on

1

Splitting a list similar to a string?

Say I have a list of tuples, and I need to split that list by a certain tuple, like ("sym","semicolon"), similar to the str.split method. How would I go about doing that?

Top comments (1)

Collapse
 
thefern profile image
Fernando B 🚀

Can you please post code of what you've tried, and a bit more clear description of what you are trying to accomplish. Maybe put example input, and expected output.

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay