Final answer:
To check your Python version in cmd, open the command prompt and type 'python --version'.
Step-by-step explanation:
For example, if you have Python 3.9.0 installed, the command prompt will display Python 3.9.0.
At the initial step, check whether an update is required. To check the existing version open the Terminal by pressing Ctrl+Alt+T and type the following command : python -V or python --version - You should get a similar output as shown below.
By default, Python installations on Windows are located in the C:\ directory or C:\Users\<User>\AppData\Local\Programs. The common installation paths for both 32-bit and 64-bit versions may reside in the C:\PythonXX folder, where XX stands for the Python version (e.g., C:\Python27 for Python 2.7).
Open a terminal window. Upgrade Python by executing the following command: sudo apt-get upgrade This command will upgrade Python to the default version in your distribution's package manager, which might be slightly behind the official release but is considered stable.