I have a list of different things and I was wondering how to split it every time it hits a new name?
So what I would like to have is have it take a list that looks like this:
list = [corn, 14, 2, 500, broccoli, 2, 10, 1400, potato, 2, 14, 7]
and it will create 3 lists:
list1 = [corn, 14, 2, 500]
list2 = [broccoli, 2, 10, 1400]
list3 = [potato, 2, 14, 7]
I am guessing it would be something along the lines of a loop that repeats a new list until it hits a non integer, but I really dont know how it would look set up.