Strings

Python

Python - Raw Strings

Raw strings change how Python’s parser interprets backslashes in string literals. In a normal string, becomes a newline character and becomes a tab. In a raw string, these remain as two…

Read more →
Python

Python - Multiline Strings

Triple-quoted strings use three consecutive single or double quotes and preserve all whitespace, including newlines and indentation. This is the most common approach for multiline text.

Read more →
Go

Go Strings: Operations and Manipulation

Go strings are immutable sequences of bytes, typically containing UTF-8 encoded text. Under the hood, a string is a read-only slice of bytes with a pointer and length. This immutability has critical…

Read more →