.. _consider-using-join:

consider-using-join / R1713
===========================

**Message emitted:**

Consider using str.join(sequence) for concatenating strings from an iterable

**Description:**

*Using str.join(sequence) is faster, uses less memory and increases readability compared to for-loop iteration.*

**Problematic code:**

.. literalinclude:: /data/messages/c/consider-using-join/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/c/consider-using-join/good.py
   :language: python



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