I am trying to slice a list into a list of lists, whereby the original list is sliced at the point where a string type object is detected e.g.
array = ['Hello',1,2,3,'Goodbye',4,6,'Bye',7,8,9,5]
to
new_array = [['Hello',1,2,3],['Goodbye',4,6],['Bye',7,8,9,5]]
How could this be achieved?