How to install IDLE Python IDE on Ubuntu 18.04
IDLE is a lightweight Python IDE you can install on your Ubuntu 18.04 desktop. IDLE on Ubuntu includes both python interpreter and the code editor.
IDLE is available for python 3 and python 2 as two separate packages. If you want to install IDLE for python 3, Open the Ubuntu terminal and install the idle3 package:
sudo apt-get update
sudo apt-get install idle3
If you want to install IDLE IDE for python 2, install the idle-python2.7 package:
sudo apt-get install idle-python2.7
IDLE allows you execute your python file with a single keystroke by hitting F5 key, the output will show up in the IDLE python interpreter.