Install idle-python2.7 by entering the following commands in the terminal:
sudo apt update sudo apt install idle-python2.7
Description:
IDE for Python (v2.7) using Tkinter
IDLE is an Integrated Development Environment for Python (v2.7). IDLE is written using Tkinter and therefore quite platform-independent.
Version: 2.7.15~rc1-1
Section: universe/python