The command
sudo apt-get update
is used to update the package list with the latest available package version. To upgrade a particular (python, in this case), use the below command:
sudo apt-get upgrade
Hope this helps you!
To learn more about Linux, it's recommended to join Linux course online today.
Thanks.