How do you exit Python in Linux terminal?

How do you exit Python in Linux terminal?
Answer
Press q to close the help window and return to the Python prompt. To leave the interactive shell and go back to the console (the system shell), press Ctrl-Z and then Enter on Windows, or Ctrl-D on OS X or Linux. Alternatively, you could also run the python command exit() !
 

Tìm kiếm

Back
Top