Reference: String processing¶
Quick-lookup pages. Short, dense, and designed to skim — the sort of thing you keep a tab open on while you're working with strings. If you're here to learn the topic for the first time, start with Learn instead.
Pages in this section¶
- String methods reference — every method on
str, with what it returns and when to use it. - String formatting reference — the f-string and
format()mini-language: alignment, width, precision, and type codes. - String constants reference —
string.ascii_letters,string.digits,string.punctuation, and the rest of the module's named character sets.