string.punctuation

Full name
string.punctuation
Library
string
Syntax

string.punctuation

Description

The variable string.punctuation returns the text string:

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

That is, it returns the set of symbols considered punctuation marks.

Parameters

The variable string.punctuation does not accept arguments.

Result

The variable string.punctuation returns a string of text.

Examples

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

string.punctuation
'!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'
Submitted by admin on Sun, 05/02/2021 - 15:43