Answers for "String module in python"

1

String module in python

import string

# string module constants
print(string.ascii_letters)
print(string.ascii_lowercase)
print(string.ascii_uppercase)
print(string.digits)
print(string.hexdigits)
print(string.whitespace)  # ' \t\n\r\x0b\x0c'
print(string.punctuation)
Posted by: Guest on October-03-2021

Code answers related to "String module in python"

Python Answers by Framework

Browse Popular Code Answers by Language