Python parallel assignment

Python supports parallel assignment like >>> lang, version = "python", 2.7 >>> print lang, version python 2.7 values are assigned to each variable without any issues. >>> x, y, z = 1, 2, x + y Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'x' is not defined First python tries to evaluate x + y expression. Since x, y is defined in same line, python is unable to access the variable x and y, so NameError is raised. [Read More]