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!
- tkinter - Hello World! Program
- How to install Python Specific version (3.8, 3.9 or 3.10) using Brew
- How to install SpaCy (NLP Library) on Mac
- Python matplotlib segmentation fault: 11 macOS Big Sur
- How to uninstall pip Python packages
- 3 Ways to find if element is present in a List in Python
- How to Convert Python String to DateTime Object
- Python f-strings Formatted String Literals Syntax and Examples
- Where does brew install python in macOS
- Take input argument from command line in Python Programming
- Advanced print() Function Tutorial and Techniques for Python Developers
- How to add borders to tkinter label text
- Whats new in Python 3.10 Pre-release
- Float built-in function in Python
- List of All 35 Reserved Keywords in Python Programming Language 3.11
- How to check if Key Exists in Python Dictionary?
- Read a file line by line in Python Program
- ModuleNotFoundError: No module named qdarkstyle.colorsystem [Python]
- What is the Max and Minimum Value of int type in Python?
- What is Terminal Velocity and its Formula? How to calculate it programmatically?
- Fix: TypeError: can only concatenate str (not int) to str in Python
- How to take user input from the console in a Python program
- [Fix] TypeError: str object is not callable in Python
- 3 Python program to add two numbers
- How to delete a file using Python code example
- Fix: error: unclosed character literal in Java - Java
- How to close tabs on Notepad++ on Click? - NotepadPlusPlus
- JSON Schema Validator Libraries: JSON Tutorial - Json-Tutorial
- How to Auto Save a file in Notepad++ - NotepadPlusPlus
- How to change the KeyMap in Android Studio - Android-Studio
- How to Create Awesome Quizzes using Windows 365 Forms - Windows
- Find Restroom Near Me - Closest Toilet Nearby Using Your Current Location - HowTos
- How to create alias in macOS - MacOS