string.hexdigits
string.hexdigits is a Python function in the String Constants category. String containing all hexadecimal digit characters. The syntax is string.hexdigits. Returns: String. A typical example: string.hexdigits # "0123456789abcdefABCDEF". A close sibling is string.ascii_letters, which string containing all ASCII letters (both lowercase and uppercase). A close sibling is string.ascii_lowercase, which string containing all lowercase ASCII letters. A close sibling is string.ascii_uppercase, which string containing all uppercase ASCII letters. A close sibling is string.digits, which string containing all decimal digit characters. More about this category: String constants and Template — ascii_letters, digits, punctuation, Template. Related String Constants entries: string.ascii_letters, string.ascii_lowercase, string.ascii_uppercase, string.digits, string.punctuation, string.whitespace. This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try string.hexdigits immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.