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
Vangie Beal is a freelance business and technology writer covering Internet technologies and online business since the late '90s.
Get the Free Newsletter
Subscribe to Daily Tech Insider for top news, trends & analysis
This email address is invalid.
Get the Free Newsletter
Subscribe to Daily Tech Insider for top news, trends & analysis
This email address is invalid.

Related Articles

Embedded Analytics

Embedded analytics brings self-service business intelligence to everyday application users.

HRIS

Human resources information system (HRIS) solutions help businesses manage multiple facets of their workforce operations. They provide a central platform for human resources professionals...

Complete List of Cybersecurity Acronyms

Cybersecurity news and best practices are full of acronyms and abbreviations. Without understanding what each one means, it's difficult to comprehend the significance of...

Human Resources Management System

A Human Resources Management System (HRMS) is a software application that supports many functions of a company's Human Resources department, including benefits administration, payroll,...

ScalaHosting

ScalaHosting is a leading managed hosting provider that offers secure, scalable, and affordable...

HRIS

Human resources information system (HRIS) solutions help businesses manage multiple facets of their...

Best Managed Service Providers...

In today's business world, managed services are more critical than ever. They can...