control over programs first script let' get started open your favorite text editor ( vinotepador the idle editor)type the following statements into new text file named script pyand save it in your working code directory that you set up earliera first python script import sys print(sys platformprint( * 'spam!print( load library module raise to power string repetition this file is our first official python script (not counting the two-liner in you shouldn' worry too much about this file' codebut as brief descriptionthis fileimports python module (libraries of additional tools)to fetch the name of the platform runs three print function callsto display the script' results uses variable named xcreated when it' assignedto hold onto string object applies various object operations that we'll begin studying in the next the sys platform here is just string that identifies the kind of computer you're working onit lives in standard python module called syswhich you must import to load (againmore on imports laterfor colori've also added some formal python comments here--the text after the characters mentioned these earlierbut should be more formal now that they're showing up in scripts comments can show up on lines by themselvesor to the right of code on line the text after is simply ignored as human-readable comment and is not considered part of the statement' syntax if you're copying this codeyou can ignore the commentsthey are just informative in this bookwe usually use different formatting style to make comments more visually distinctivebut they'll appear as normal text in your code againdon' focus on the syntax of the code in this file for nowwe'll learn about all of it later the main point to notice is that you've typed this code into filerather than at the interactive prompt in the processyou've coded fully functional python script notice that the module file is called script py as for all top-level filesit could also be called simply scriptbut files of code you want to import into client have to end with py suffix we'll study imports later in this because you may want to import them in the futureit' good idea to use py suffixes for most python files that you code alsosome text editors detect python files by their py suffixif the suffix is not presentyou may not get features like syntax colorization and automatic indentation system command lines and files