string.printable

Full name
string.printable
Library
string
Syntax

string.printable

Description

The variable string.printable returns the text string:

'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c'

That is, it returns the printable symbols. The result obtained is equivalent to the concatenation of those returned by string.digits , string.ascii_letters , string.punctuation and string.whitespace.

Parameters

The variable string.printable does not accept arguments.

Result

The variable string.printable returns a text string.

Examples

We can obtain the characters contained in this variable with the following code:

string.printable
'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c'
Submitted by admin on Sun, 05/02/2021 - 18:05