file in home directory print('helloworld!'run from unix prompt hello py unix prompt unix command to run python python hello py python script helloworldpython script' output unix prompt so we understand the "helloworldcommand and how to run it from an interactive python but serious python programs can' be typed in livethey need to be kept in file and python needs to be directed to run the commands from that file these files are called "scriptsand we are now going to look at the python script version of "helloworldin your home directories we have put file called "hello pyit is conventional that python scripts have file names ending with pysuffix some tools actually require it we will follow this convention and you should too this contains exactly the same as we were typing manuallya single line with the print command on it we are going to make python run the instructions out of the script we call this "running the scriptscripts are run from the unix command line we issue the unix command "python to execute python againbut this time we add an extra wordthe name of the script"hello pywhen it runs commands from scriptpython doesn' bother with the lines of blurb and as soon as it has run the commands (hence the outputit exists immediatelyreturning control to the unix environmentso we get unix prompt back