.. _expression-not-assigned:

expression-not-assigned / W0106
===============================

**Message emitted:**

Expression "%s" is assigned to nothing

**Description:**

*Used when an expression that is not a function call is assigned to nothing. Probably something else was intended.*

**Problematic code:**

.. literalinclude:: /data/messages/e/expression-not-assigned/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/e/expression-not-assigned/good.py
   :language: python



Created by the `basic <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/base/basic_checker.py>`__ checker.