10 Python One-Liners for Strings
Background on Strings
Functionally, strings can represent just about anything that can be encoded as text or bytes. Python’s strings serve the same role as character arrays in languages such as C but they are a higher-level tool than arrays. They are classified as immutable sequences, meaning characters within have a left-to-right positional order and that they cannot be changed in place. Note…