Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k 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 (26.4k 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
4 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
4 answers

Browse Categories

...