I have a nested list with some strings. I want to split strings with '-' character in an odd interval, as myresult showed. I've seen this question. But it couldn't help me.
mylist= [['1 - 2 - 3 - 4 - 5 - 6'],['1 - 2 - 3 - 4']]
myresult = [[['1 - 2'] , ['3 - 4'] , ['5 - 6']],[['1 - 2] ,[ 3 - 4']]]