Is there a reason to import the string module in Python?

python, string

Solution

Generally you don't need to import `string` module as the class is already in builtins. However, there are several constants that are in the string module that are not built in, that can be usefull.

Problem

I am a beginner in programming and Python is my first language. I am using a Python shell right now, but don't understand why we need to import the `string` module. I know that importing `string` imports some functions, but when I tried using functions like `string.split` and `string.join`, they all work without the import, so I assume that means that they are just Python builtins. Is there anything that works once you import the `string` module that wouldn't work otherwise?

Original source

Related problems