In Python 2 you get
>>> from string import *
>>> letters
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
But in Python 3, you get
>>> from string import *
>>> letters
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'letters' is not defined
It's not defined, whereas digits
and whitespace
are.
What is the equivalence of letters
from the string module in Python 3?