GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Processing
  • p5.js
  • Processing.py
  • Processing for Android
  • Processing for Pi
  • Processing Foundation

This view

  • Original page
  • New address

GeezerVison is showing py.processing.org — .join() \ Language (API)

Python Mode for Processing is no longer maintained. This site is kept as an archive. Read more
  • Processing
  • p5.js
  • Processing.py
  • Processing for Android
  • Processing for Pi
  • Processing Foundation
Cover
Reference
Tutorials
Examples
Bugs
Name

.join()

Examples
separator = ' and '            # String to separate sequence items by.
words = ['this', 'that']       # String to join.
joined = separator.join(words) # Join items in sequence words,
                               # separated by 'separator'.
print(joined)

polyhedra = ["cube", "dodecahedron", "icosahedron"]

# The .join() method is often called on a string literal, without assigning it
# to a variable first.
joined = ", ".join(polyhedra)

print(joined) # Prints "cube, dodecahedron, icosahedron"
Description Combines a sequence of strings to create a new string, separating each item from the sequence with the content of the string the method is called on.
Syntax
	separator.join(sequence)
Parameters
separatorThe string to insert between elements of the sequence.
sequenceA sequence (e.g., list or tuple) of strings to be joined together.
Related String Formatting
.find()
.strip()
.split()
.replace()

Updated on Sat Oct 24 11:26:09 2026.

If you see any errors or have comments, please let us know.

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.