IntelliJ IDEA with python plugin.
Answered
I am very new with IntelliJ IDEA and Python as well.
When I debug or run python code in IntelliJ, arithmetic operation such as addition, subtraction are not working.
My code :
Print("Hello world")
10+5
The result in IntelliJ :
Hello world
The result in Terminal :
Hello world
15
Am I missing something?
Please sign in to leave a comment.
Works fine here:
What Python version do you use? Do you use ipython or standard console?
I am using python plugin from Jetbrains.
Above is result when I Run below code with Python plugin.
print("Hello world")
10+5
If I run in terminal, everything is fine.
Use Tools | Python Console if you need a console. Your code will only work in Python REPL the way you expect it to work.