DEV Community

Splitting a list similar to a string?

miko1112 on August 21, 2021

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?

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.