eHow launches Android app: Get the best of eHow on the go.

How to Write a Computer Script

Video Preview
From Quick Guide: Computer Programming 101

Summary: In order to write computer scripts, a free program called Python should be installed and used as a graphical user interface. Find out how to use Python language with help from a software developer in this free video on computer script.

Views:
943
Presenter
By Dave Andrews
eHow Presenter

Dave Andrews is a software developer with a business and Web site selling programs and other computer services in Franklin, Tenn. Having worked in the IT industry for more than 8...read more

Post a Comment

Post a Comment

Video Transcript

"Hi. My name is Dave Andrews. Today I'm going to show you how to write computer script. What we're going to use is is a programming language called Python which is a freely downloadable and usable programming language. Let's go to our computer. And to get Python, open up your web browser and go to google and just do a search here on google for Python. Now one of the first things you're going to get, usually the first, is going to be to python.org. Just click there. And then click on the download option. And then find the Python Windows installer. Just click there and that's going to download and install Python to your computer and you'll have everything that you'll need to begin using the language. I already have it installed so I'm going to close this. And now let's click on our start button.Go to all programs. Let's find Python and click on Idle, which is a Python graphical user interphase. Now from here, go to file and click new window. Now this is your main code window. It looks very similar to a program like Notepad but you have more menu options here. Now what I'm going to do is I'm going to write a very simple program. Let's say set the variable I equal to five and we're going to print out that variable and I'm going to do a four loop for I in range, zero to twenty, print I times five. Make that a little more interesting .Now what this is going to do is this is going to create a variable named I. It's going to assign the value of five to it and it's going to print out I to the screen. Which should print out five. And the very next two lines here begin what's called a four loop, which will loop from the range zero to twenty. Which will end up being the numbers zero to nineteen because it does not include the last number here. And it'll assign those values to I and as it's looping, it'll print out I times five. So what we're going to get, is we're going to get is we're going to get five, ten, fifteen, twenty and on and on and on until you get nineteen times five, whatever that ends up being. So let's run our program, by clicking run, Python shell. Actually run and then run module. And you have to save it first. I'm going to save it as my program. And let us now run our program and as you can see I got the results five and then from zero to twenty, that number times five. So it's that easy to begin using the Python language and there's lots of information about this on the Internet. Tutorials and things. You can do a lot more with it than just printing out numbers. But that's just to get you started writing computer script. My name is Dave Andrews and I've just showed you how to write computer script."

eHow Article: How to Write a Computer Script

Related Ads

  • Have you done this? Click here to let us know.
Computers
Alexia Petrakos,

Meet Alexia Petrakos eHow's Computers Expert.

Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics