0 votes
1 view
in Python by (11.8k points)

So I'm actually reading this old module from I think around 2002 and it also have this line "import string". Did Python expect you to import a string module unequivocally before having the option to utilize string-type factors or something? I don't see it utilized like this in the code: 

string.something

1 Answer

0 votes
by (24.6k points)

The string module contains a bunch of valuable constants, like ascii_letters and digits, and the module is regularly still imported hence.

Interested to learn the concepts of Python in detail? Come and join the python course to gain more knowledge in Python

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...