結果 : how to exit a loop in python terminal