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
input(\'Press Any Key To Exit\')
in Windows:
if msvcrt.kbhit(): if msvcrt.getch() == b'q': exit()