How to update Python which download from official website?
If you have homebrew installed you can type in the terminal:

brew install python3


Otherwise you can just download it again from the website and install it.

If you don't know which version of python you have installed type python --version or python3 --version. Similar questions have been answered on SO and other websites.