I want to combine two lists into a list of lists. And vice versa. I can't find anything seems to work and I am very new to Python
Example:
S1 = [1,2,3]
S2 = [4,5,6,7]
Expected output
S = [[1,2,3],[4,5,6,7]]
and How can I split S back into original S1 and S2 ? Example:
S = [[1,2,3],[4,5,6,7]]
Expected output
S1 = [1,2,3]
S2 = [4,5,6,7]