1# To check your Python version in the command line use:
2python --version
3
4# To check your Python verson inside a script use:
5import sys
6print(sys.version)
1# 2 ways to check python version
2# In the terminal/cmd write the following:
3
4# Way 1
5python -V
6
7# Way 2
8python -c "import sys; print(sys.version)"