Hello,
What does the “*” do?
list = IN[0]
OUT = zip(*list)
KR
Andreas
A little Googling might clear this up but it essentially allows list comprehension to or from merged lists.
For example:
If a function requires 3 inputs (myFunction(a,b,c)
) you would typically define those 3 inputs and pass them as individual arguments to the function. If you have those arguments already contained in a single list (myList = [a,b,c]
) then you can use a star operator to force list comprehension from that list (myFunction(*myList)
).