This article demonstrates how to use of string.ascii_uppercase.
In Python3, ascii_uppercase is a pre-initialized string used as string constant.
In Python, string ascii_uppercase will give the uppercase letters "ABCDEFGHIJKLMNOPQRSTUVWXYZ".
Syntax :
string.ascii_uppercase
Parameter Values :
Doesn't take any parameter, since it's not a function.
Returns :
Return all uppercase letters.
Sample Code :
# import string library function
import string
# Storing the value in variable result
result = string.ascii_uppercase
# Printing the value
print(result)
Output :
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Hence,we can see above string.ascii_uppercase returns the uppercase letters "ABCDEFGHIJKLMNOPQRSTUVWXYZ". This value is not locale-dependent and will not change.
Comments