I have a sentence
string = 'senior engineer/developer in school/university'
my except output combinations are
string_list = ['senior engineer in school', 'senior engineer in university',
'senior developer in school', 'senior developer in school]
I want to make a combination by splitting the sentence based on "/". Is there any option to split in such way? I was looking at itertools but its not the way i am expecting
x = string.split('/')
x = [y.split() for y in x]
print(list(combinations(x,len(x))))