Python - How to import 'string'

Import string

To import string, Add the following line to the top of your code.

import string

 

For more information about string:
Python string