I want to get the latest python source from https://www.python.org/ftp/python/. While posting this, the latest version is 3.9.1. I do not want to hardcode 3.9.1 in my code to get the latest version and keep on updating the version when a new version comes out. I am using OS ubuntu 16.04
Is there a programmatic way to get the latest python version (using curl) and use that version to get the latest source?