(Jun-13-2018, 07:48 AM)3Pinter Wrote: like I did in my first post: I declared output1, output2 as empty lists. Because if I wouldn't I won't be able to append values to it
If I would want to turn a number of results in a list, I could just define it on the spot ...
Right?
yes, that's correct.
note that result initially is list of lists, so you unpack the outer list in respective number of variables
result = [['a', 'b', 'c'], [1, 2, 3]] o1, o2 = result print(o1) print(o2)
Output:['a', 'b', 'c']
[1, 2, 3]
>>>
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs