.. _not-in-loop:

not-in-loop / E0103
===================

**Message emitted:**

%r not properly in loop

**Description:**

*Used when break or continue keywords are used outside a loop.*

**Problematic code:**

.. literalinclude:: /data/messages/n/not-in-loop/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/n/not-in-loop/good.py
   :language: python



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