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.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay