Windows:
Windows + R 
cmd , then press Enter, to launch the Windows Command Prompt 
python --version
, then press EnterPython 3.11.5 ).
Otherwise, an error message will appear.bash
If Python is installed, a version will be displayed. Otherwise, continue with the steps below to install it. python3 --versionExample text
Example text