Python is preinstalled in buster OS under /usr/bin/python3, etc.
There are many py commands in here.
Checking python version from command line
$ python --version
Returns
Python 2.7.16
$python3 --version
Returns
Python3.7.3
Python Versions
There is 2 and 3. 2 is dead but for some reason is still the default. 3 is what we should use.
Just always start all .py scripts by prefacing python3 command since python will still be launching python2.
Type python3 from the putty telnet command line to enter the Python3 shell >>>
Where should I place my python scripts?
For now lets create a new py folder under /home/pi/ and put our py scripts in it.
$mkdir py