You are going to learn Python 3. Python 2 has been around for a long time and has a huge library and module support, but Python 3 is the future language. You can also easily install Python 3. Consult the download section of the official web site. In any modern Linux distribution , open your terminal and type “python3”. It will give you the Python interpreter or shell where you can write your code.
Remember, Python comes with every modern Linux distribution. So you need not install it anymore. But a few packages you might need to install. There are tons of tutorials and a lot of community ...