if at the end of the code i write this o execute main,
if __name__ == '__main__': try: main() except KeyboardInterrupt: pass
isnt thre anyyy other way to exit the interpretor except pressing ctrl -c ???? the interpretor halts even if code ends and then i have to press ctrl c to exit it ... plz tel me some other way out, to automatically terminate the code.