Sorry for the very messy title. What I have is a function that returns 2 different values:
def func(name):
return value1, value2
Now I would like to assign these 2 values to variables in one line. This is what I have tried:
x,y = func(name)[0] , [1]
The x variable is assigned correctly, but the y variable is assigned just assigned as [1].
If it relevant: The [0] is an array and the [1] is a DataFrame form a .csv file.