Operation done in 1st point isn't technically multiple variable assignment but tuple unpacking. What you have on the right side is an implicit tuple created due to the commas and then you unpack its values to the variables on the left side of the assignment.
Tuple unpacking is technically what it is, but it's not wrong to call multiple variable assignment the effect that you achieve. It's more didactic and, in fact, more accurate, because there is more to tuple unpacking than said here.
Tuple unpacking is more specific. 'multiple variable assignment' would be also `a = b = c = None', wouldn't it?
Here, a comma on the right side of the assignment represents implicit tuple creation, which is first executed and then unpacked.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Operation done in 1st point isn't technically multiple variable assignment but tuple unpacking. What you have on the right side is an implicit tuple created due to the commas and then you unpack its values to the variables on the left side of the assignment.
Tuple unpacking is technically what it is, but it's not wrong to call multiple variable assignment the effect that you achieve. It's more didactic and, in fact, more accurate, because there is more to tuple unpacking than said here.
Yeah but this method is named as ' multiple variable assignment ', no?
Tuple unpacking is more specific. 'multiple variable assignment' would be also `a = b = c = None', wouldn't it?
Here, a comma on the right side of the assignment represents implicit tuple creation, which is first executed and then unpacked.