In this case, x[0]is define, x[1]is the name of the variable, and x[2]is the expression. Thus, in Python, it _, var, exp = xis a “destructuring destination” that destroys an array xinto its constituent elements and assigns them to variables on the left side.
source
share