Contact: aviboots(AT)netvision.net.il
39,926 questions
51,859 answers
573 users
s = "Apples and Oranges and Bananas and Grapes are tasty" delimiter = "and" # Split the string by the delimiter parts = s.split(delimiter) for part in parts: print(part.strip()) ''' run: Apples Oranges Bananas Grapes are tasty '''