How to Solve NameError: name 'init' is not defined -- colorama

Solution: Import the 'init' module

To Solve the error, add the following line to the top of your code.

from colorama import init

 

For more information:
Python colorama init