Search code examples
pythonterminalpycharmconsole

Difference between Python console and Terminal in PyCharm


I am a beginner in Python. I started using PyCharm recently but I don't know what's the difference between Terminal and console. Some of the commands in Terminal do not work in console.


Solution

  • Before we can talk about the differences, we need to talk about what the two are in practice. The Terminal, essentially replaces your command-prompt/power-shell on windows and the terminal app on Mac, giving you a way to access them without leaving PyCharm.

    enter image description here

    The PyCharm console on the other hand, is a more advanced version of the "Python Console", which allows you to run bits of Python. It is also called the Python REPL or Read Eval Print Loop

    enter image description here

    You can invoke the Python Console from the terminal as well.