I have the following list:
order = [['S', ['PINEAPPLE']], ['M', ['PINEAPPLE']], ['L', ['PINEAPPLE']]]
I want to split this list into seperate lists so that it will look like this
order1 = ['S', ['PINEAPPLE']]
order2 = ['M', ['PINEAPPLE']]
order3 = ['L', ['PINEAPPLE']]
I would also like to know if its possible to make "order 1-3" into tuples instead of lists
I tried:
orders = order_str.split(",")
but that only works for strings