Definition

Combining separate strings together end-to-end to form a new single string.

Characteristics

  • Combines two or more strings into one new string
  • The order of the strings stays the same
  • Uses the + operator in Python
  • Does not automatically insert whitespace between combined strings

Examples

  • "hello" + "world""helloworld"
  • "hello " + "world""hello world"

Non-examples

  • Printing values separated by commas: print("hello", "world")
  • F-strings: f"hello {name}"

OCR J277

OCR H446