So, as the title says, I want a proper code to close my python script.
So far, I\'ve used input(\'Press Any Key To Exit\'), but what that does, is generate a er
As far as I know there is no way to 'press any key'. The input and raw_input commands require you to press the ENTER key.
(raw_input is not supported in Python 3.x)