install idle3 in linux

C++
$ sudo apt install idle                [On Debian/Ubuntu for Python2]
$ sudo apt-get install idle3           [On Debian/Ubuntu for Python3]
$ sudo yum install python3-tools       [On CentOS/RHEL and Fedora]
Source

Also in C++: