Question about page "3. An Informal Introduction to Python"

About the page at 3. An Informal Introduction to Python — Python 3.14.6 documentation
I would change this block:
“The first line contains a multiple assignment: the variables a and b simultaneously get the new values 0 and 1. On the last line this is used again, demonstrating that the expressions on the right-hand side are all evaluated first before any of the assignments take place. The right-hand side expressions are evaluated from the left to the right.”

To this:
"The first line contains a multiple assignment - which we haven’t seen before:
The variables a and b simultaneously get the new values 0 and 1 respectively, it’s equivalent to doing a=0 && b=1.
On the last line this is used again, (a,b) = (b, b+a),
Demonstrating that the expressions on the right-hand side are all evaluated first before any of the assignments (change of value of a and b on the left side) take place. The right-hand side expressions are evaluated from the left to the right.
"

This is not necessary, the line right above the block you are proposing be changed says “This example introduces several new features.”

I think this is likely to cause more confusion that the existing text because it reads like an operator between two assignments. The existing text is clearer.

That does not match the last line…it adds parenthesis. This may cause confusion.

This is redundant in that it repeats “any of the assignments take place”.

1 Like

Are you sure that that’s equivalent? Have you tried it?

1 Like