Python‎ > ‎

string constants

http://www.adilwaseem.com/

Definition
The Python contain number of useful constants whom value remains same. 

Prerequisite
import string syntax required
 
Syntax
Syntax are written without brackets

Parameters
None

Examples
The return is equal to:
 >>> import string
>>> string.ascii_letters
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
>>> 
>>> string.digits
'0123456789'
>>> string.octdigits
'01234567'
>>>