Why is python -version not working in cmd prompt?

i have python installed but nein work

Try two dashes instead of one. If the option is multiple letters, it needs multiple dashes.

still im getting

Python was not found;

This is due to system path. You need to add the python path to system path.

That, or try python3 instead.

When you are using Windows, the command of then is py. Try py –version, especially if you got Python from the Microsoft store. As others here said though, adding Python to the PATH should make things easier for you later on.