'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 1:[1]
The terminal is your bash or windows command line where you can execute shell or windows "cmd.exe" commands like:
$ cd /
$ ls
$ echo "Hello world!!!"
The Python console is your interactive console where you can execute python code
>>> x, y = 1, 2
>>> x
1
>>> y
2
>>> x + y
3
>>> print("Hello world!!!")
Hello world!!!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | rostIvan |
