SeungHwan Lee
SeungHwan Lee

Reputation: 13

It is hard for me to understand the difference between Idle and Pycharm

If I put a simple code like

3 == 3

On Pycharm I can see it's 'true' or 'false' but on Idle it shows true.

And I cant understand the difference between Idle and Pycharm

On pycharm

"D:\PHYTHON PROJECT\venv\Scripts\python.exe" C:/Users/UQO/.PyCharmCE2019.1/config/scratches/practice.py

Process finished with exit code 0

On Idle

>>> 3==3
True

Upvotes: 0

Views: 981

Answers (1)

MartenCatcher
MartenCatcher

Reputation: 2887

It happens because the python's shell immediately prints the result of previous operation. But if you want to print something in your script you have to do it explicitly by control your output.

Try this

print(3 == 3)

Upvotes: 2

Related Questions