Press "Enter" to skip to content

Splitting and Concatenating Strings with Python

Rajendra Gupta walks us through splitting and concatenating strings with Python:

In Python, we do not have a character data type. It uses Unicode characters for the string. It also considers a single character as a string. Sometimes, we need to split a string based on the separator defined. It is similar to a text to columns feature in Microsoft Excel.

Click through for a number of examples.