There are multiple ways in which you can check which is your current Python version.
Example 1: Know the current Python Version Command Line/Terminal
% python -V
Note: If you are using Python 3.x you will get an error,
# python -V
bash: python: command not found
% python -V
zsh: command not found: python
If you are using Python 3.x
% python3 -V
Python 3.10.8
% python3 --version

--version flag was introduced in Python 2.5
Example 2: Know current Python Version Programmatically
At times you may not have access to the terminal, for example, a hosted Notebook, in such case you may make use of Python code to programmatically know the version.
You can make use of the sys package to know the current Python version,
import sys
print("Current Python version is: ",sys.version)
Output:
Current Python version is: 3.10.8 (main, Oct 21 2022, 22:22:30) [Clang 14.0.0 (clang-1400.0.29.202)]

Above is a screenshot of Google Colab Notebook, where the code was executed and the version obtained is 3.10.8.
Have Questions? Post them here!
- Comments in Python Programming
- tkinter - Hello World! Program
- How to install Python 3.11 on Mac
- Python matplotlib segmentation fault: 11 macOS Big Sur
- Change label (text) color in tkinter
- Python Hello World! Program with code example (snippet)
- Calculate discount amount python code
- Take input argument from command line in Python Programming
- How to pip install Python Modules in VSCode
- Tkinter - add x and y padding to label text
- Python raise error with message example
- Check if String Contains a Substring - Python
- Python Program To Calculate Simple Interest (SimpleInterest.py)
- What does b prefix before a String mean in Python?
- What is Terminal Velocity and its Formula? How to calculate it programmatically?
- How to List all Packages installed using pip [Python]
- Convert Float to String in Python
- Change the background of Tkinter label or text
- How to Install Python Modules in VS Code
- Indent Python code in Notepad++
- Validate email address in Python using regular expression (regex)
- Python: Fix command not found pip or pip3 on zsh shell
- TypeError: must be str, not int [Fix Python]
- ModuleNotFoundError: No module named qdarkstyle.colorsystem [Python]
- Python - Convert float to String
- Where are Notepad++ temp unsaved files stored? - NotepadPlusPlus
- Android : java.lang.IllegalArgumentException File contains a path separator - Android
- Chrome move to next or previous tab using keyboard - Chrome
- How to add border to Android TextView - Android
- URL Encode cURL HTTP GET\POST Data with Examples - cURL
- HTML5 HELLO WORLD Example - Html
- Read YAML file Java Jackson Library - Java
- How to get current URL Location using Javascript HTML - JavaScript