This is because there are two versions of python on your computer. When you want to refer to a particular version of python just do:
py - version

For example, if you want to reference python 3.10 in cmd, do: py - 310
And when you want to reference to 3.9 do: py - 39

Make sure you have the correct spacing^
My question is to do with calling python from a command prompt in windows 10 after installing a new version (3.9 to 3.10).
When I type (into a cmd prompt): py i get Python 3.10.0.
When I type (into a cmd prompt): python i get Python 3.9.6.

So two questions:

Why do I get two different versions when typing python compared to py?
How can I ensure that they point to the same version or how can I select different versions?
different python versions from the same command prompt in windows