to tell Python which namespace to use.
+.. _why-can-t-i-use-an-assignment-in-an-expression:
+
Why can't I use an assignment in an expression?
-----------------------------------------------
'Trondheim'
Note that in Python, unlike C, assignment inside expressions must be done
-explicitly with the walrus operator ``:=``. This avoids a common class of
-problems encountered in C programs: typing ``=`` in an expression when ``==``
-was intended.
+explicitly with the
+:ref:`walrus operator <why-can-t-i-use-an-assignment-in-an-expression>` ``:=``.
+This avoids a common class of problems encountered in C programs: typing ``=``
+in an expression when ``==`` was intended.
.. _tut-comparing: