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 an error.
I want a code that closes your script without using an error.
Does anyone have an idea? Google gives me the input option, but I don't want that It closes using this error:
Traceback (most recent call last):
  File "C:/Python27/test", line 1, in <module>
    input('Press Any Key To Exit')
  File "<string>", line 0
    
   ^
SyntaxError: unexpected EOF while parsing
 
     
     
     
     
     
     
     
     
     
     
     
    