Syntax

Python Join Strings Syntax

In Python, join strings: joins a list of strings with a separator — ", ".join(words)

Quick Answer

Syntax
", ".join(words)
PythonSyntax

Join Strings

Code example
", ".join(words)

Joins a list of strings with a separator.

Learn More

How to join strings in Python

  1. Open your Python file or editor.
  2. Copy the example, then replace its sample names and values for your code.

Python Join Strings Syntax

Use ", ".join(words).

Related Syntax References

Frequently asked questions

What is the Python syntax for join strings?

Use this pattern: ", ".join(words)

Can I copy this Python code example?

Yes. Use Copy code and adapt the example to your program.

Is this Python syntax different on Mac or Windows?

No. The language syntax is the same across operating systems.

Official source · How we verify