a end how to how to end a program in python using code If you press CTRL C while a script is running in the console the script ends and raises an exception. The standard way to exit th… Sunday, August 14, 2022 Edit