Reputation: 526
Is there a difference using IDLE3 or the Ubuntu 14.04 terminal for Python3 interpretation? In that case, what are the differences?
Upvotes: 0
Views: 281
Reputation: 19144
I have not used the Ubuntu terminal, but I will assume that it is a typical terminal program. If you type python3
, it starts python3, which prints, in the same window, something like Python 3.4.3 ...
and then a prompt >>>
. You interact with python3 via the terminal program.
If you type idle3
, it runs a python gui program (Idle) with python3. That program prints, in a separate window, something like Python 3.4.3 ...
and then a prompt >>>
. You interact with python3 via this python program. In either case, any code you enter is executed by python3. For nearly all code you might enter, such as anything in the tutorial, the printed response will be the same.
The difference in terms of interaction is that in the terminal, if it is typical, you enter and recall (with up arrow?) lines of code, whereas in Idle, you enter and recall (with Alt-p) statements, which may comprise multiple lines. Also, Idle syntax colors your code, whereas your terminal may not.
A bigger difference is that Idle is not just a Python terminal or shell, but is an integrated development environment that includes an editor that works with the shell. You can run code from the editor with F5. If there is an error traceback in the shell, you can right click on an error line and go to the line with the error.
Upvotes: 1