Python and IDLE are included by default in many Linux distributions, but not necessarily in all of them. For example, in Ubuntu Linux, Python is installed by default, but you may need to install the IDLE module separately.

Before installing IDLE on Linux, you should update the system repositories. This ensures that all of your systems software is up-to-date, reducing the likelihood of compatibility issues. Open a terminal and run the following commands.

sudo apt update
sudo apt upgrade -y

Next, run the following command to install IDLE version 3.

sudo apt install idle3