Immutable

Python String

Python String

Python strings are a sequence of characters enclosed in either single, double or triple quotes. They are one of the most commonly used data types in Python and can be manipulated in a variety of ways. Strings in Python are immutable, which means once they are created, their values cannot be changed. However, operations can be performed on them to create new strings. Some of the common operations performed on strings include concatenation, slicing, and formatting. With its ease of use and versatility, Python strings are an essential component of any Python program.