how to make con.close() run in python idle code example Example: how to run ur code in python idle print("hello world")