Common constants for characters
Concatenation of the ascii_lowercase and ascii_uppercase constants.
ascii_lowercase
ascii_uppercase
Sequence of lowercase letters in the English alphabet.
Sequence of uppercase letters in the English alphabet.
Sequence of decimal digits from 0 to 9.
0
9
Sequence of hexadecimal digits from 0 to 9, a to f, and also A to F.
a
f
A
F
Sequence of octal digits from 0 to 7.
7
Sequence of ASCII characters which are considered printable: digits, ascii_letters, punctuation, and whitespace.
digits
ascii_letters
punctuation
whitespace
Sequence of ASCII characters which are considered punctuation: !"#$%&'()*+,-./:;<=>?@[\]^_{|}~`
!"#$%&'()*+,-./:;<=>?@[\]^_
Sequence of ASCII characters which are considered whitespace: space, tab, linefeed, return, formfeed, and vertical tab.
See also the official documentation of the string module
PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI
Privacy Policy • Platform Version 09261d28 (October 29, 2026 at 11:10:44 AM UTC)