How do I remove a specific string from some strings in a list?
I’ve been trying to figure out a more universal fix for my code and having a hard time with it. This is what I have: lst = [‘Thursday, June ##’, ‘some string’, ‘another string’, ‘etc’, ‘Friday, June ##’, ‘more strings’, ‘etc’] I’m trying to remove everything after the comma in the strings that contain commas… Read More How do I remove a specific string from some strings in a list?