To find the version of Python that is installed on your system, follow these steps:
Open a terminal window. You can do this by pressing Ctrl + Alt + T
or by searching for "Terminal" in the start menu or dashboard.
In the terminal, type the following command and press Enter
:
python --version
This will display the version number of Python that is currently installed on your system.
Alternatively, you can use the python3
command to display the version of Python 3 that is installed on your system:
python3 --version
You can also use the python
or python3
command to start an interactive Python shell, where you can enter Python commands and see their output. To exit the Python shell, type exit()
or press Ctrl + D
.