if __name__ == "__main__"

Runs code only when the file is executed directly, not when it is imported.