Concatenation

Concatenation, broadly speaking, is the linking or joining of two things to achieve a certain result. In computer programming, it links two characters or character strings together to create a phrase or compound word. This process is also known as string theory. Concatenating two separate files requires the user to append one to the other (rather than inserting).

Concatenation is mathematical, using algebraic processes to join characters into strings and strings into different strings. Symbols known as operators join the character strings together; they differ depending on the programming language being used. These symbols allow users to manipulate the page s text. A common operator is +, which adds two character strings together. Some programming languages don t always need an operator: if two string literals are joined in C++ or Python, they may not require one. A literal is itself a value, and it can be a character or a string.

In Python, each character exists as its own immutable string. Concatenation requires two strings (not a string and an integer; this triggers an error). Four methods of concatenation in Python include + operator, % operator, format () function, and join() method. Again, + operator is common and simple in Python.

Vangie Beal
Vangie Beal is a freelance business and technology writer covering Internet technologies and online business since the late '90s.

Top Articles

The Complete List of 1500+ Common Text Abbreviations & Acronyms

From A3 to ZZZ we list 1,559 SMS, online chat, and text abbreviations to help you translate and understand today's texting lingo. Includes Top...

Windows Operating System History & Versions

The Windows operating system (Windows OS) refers to a family of operating systems developed by Microsoft Corporation. We look at the history of Windows...

How to Create a Website Shortcut on Your Desktop

Website Shortcut on Your Desktop reviewed by Web Webster   This Webopedia guide will show you how to create a website shortcut on your desktop using...

Generations of Computers (1st to 5th)

Reviewed by Web Webster Learn about each of the 5 generations of computers and major technology developments that have led to the computing devices that...

Podcast

A podcast is an episodic form of digital audio content that...

Upwork

Upwork is one the most popular and biggest online platforms for clients and...

Headless CMS

A headless content management system (CMS) is a type of back-end content management...