string.ascii_letters

Full name
string.ascii_letters
Library
string
Syntax

string.ascii_letters

Description

The variable string.ascii_letters returns the text string:

'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'

This text string is equivalent to concatenating the result of string.ascii_lowercase and string.ascii_uppercase.

Parameters

The variable string.ascii_letters does not accept arguments.

Result

The variable string.ascii_letters returns a text string.

Examples

We can obtain the set of lowercase and uppercase letters contained in this variable with the following code:

string.ascii_letters
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
Submitted by admin on Sat, 04/24/2021 - 11:00