string.ascii_letters
string.ascii_letters is a Python function in the String Constants category. String containing all ASCII letters (both lowercase and uppercase). The syntax is string.ascii_letters. Returns: String. A typical example: import string
string.ascii_letters # "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ". 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. A close sibling is string.hexdigits, which string containing all hexadecimal digit characters. More about this category: String constants and Template — ascii_letters, digits, punctuation, Template. Related String Constants entries: string.ascii_lowercase, string.ascii_uppercase, string.digits, string.hexdigits, 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.ascii_letters immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.