What's the default Python 3 version in the new Ubuntu 20.04? Is it still 3.6 or the latest Python 3.8?
I'm developing a Python program that I later want to run on the new Ubuntu 20.04. I'm unsure if I can use the latest Python 3.8 syntax. I don't have Ubuntu 20.04 installed yet to quickly check it, and I couldn't easily find the answer to this question on Google.
Ubuntu 20.04 has Python 3.8.2 as the default version. Python 2.7 has been moved to universe and is not included by default in any new installs. Official Release Notes about Python
If you want to find the default Python 3 version of any Ubuntu release, you can run the command
Alternatively, check the package
https://packages.ubuntu.com/search?suite=groovy&keywords=python3
For groovy (Ubuntu 20.10), it's Python 3.8.6:
According to the Ubuntu 20.04 release notes:
Manifest file
Another thing you can do for any Ubuntu version and any package is to check the manifest file which lists all preinstalled packages in the image: https://web.archive.org/web/20200508223720/https://releases.ubuntu.com/20.04/ubuntu-20.04-desktop-amd64.manifest
It contains
python3.8
but nothing that seems python2 related.See also: How do I list the default installed packages?