Revision history [back]

unpacking list in a list

Hi, I'm trying to convert a sympy code to sage.

I have found that the following does not work:

sector1 = [1,2,3]
sector2 = [4,5,6]
newlist = [*sector1, sector2]


even though the unpacking works for functions (ex F(*sector1)).

How do I do that?