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
They are:
1.quit()
2.exit()
3.Ctrl + z
Here is an example:
Moreover, if you plan to exit python application from python script, you can read this tutorial.
Ways to Exit or Quit a Python Script: A Completed Guide