We can edit and run python code by windows 10 command prompt, which is very useful to run short python code. However, how to exit python from command prompt? In this tutorial, we will tell your three ways.
Three ways to exit python from windows 10 command prompt
3.Ctrl + z
Here is an example:
Moreover, if you plan to exit python application from python script, you can read this tutorial.