:\>cd :\py eg :\py eg\> :\python \python exe hello py since the cd (change directorycommand has an absolute pathit doesn' matter which directory you start out from unix users enter this instead (assuming that python is in the path)cd $home/py eg python hello py in both cases the output should be the samehello worldnote that unless stated otherwisepython' behavior on mac os is the same as that on any other unix system in factwhenever we refer to "unixit can be taken to mean linuxbsdmac os xand most other unixes and unix-like systems although the program has just one executable statementby running it we can infer some information about the print(function for one thingprint(is built-in part of the python language--we didn' need to "importor "includeit from library to make use of it alsoit separates each item it prints with single spaceand prints newline after the last item is printed these are default behaviors that can be changedas we will see later another thing worth noting about print(is that it can take as many or as few arguments as we care to give it typing such command lines to invoke our python programs would quickly become tedious fortunatelyon both windows and unix we can use more convenient approaches assuming we are in the py eg directoryon windows we can simply typec:\py eg\>hello py windows uses its registry of file associations to automatically call the python interpreter when filename with extension py is entered in console unfortunatelythis convenience does not always worksince some versions of windows have bug that sometimes affects the execution of interpreted programs that are invoked as the result of file association this isn' specific to pythonother interpreters and even some bat files are affected by the bug too if this problem arisessimply invoke python directly rather than relying on the file association if the output on windows isthe unix prompt may well be different from the shown hereit does not matter what it is print(