Hi, my name is Dave Andrews. Today I’m going
to show you how to program a computer. There’s a lot of ways for beginners to break into
programming. Some people say you should use Java, other people say you should use C .
But I’m going to show you how to use a programming language called Python which I think is the
easiest for beginners who are getting started. To get going with Python, if you can see my
computer, basically just point your web browser to Python.org. Now once you have Python installed,
let’s write a simple program by clicking on your start button, going to all programs.
Let’s find Python two point six and just run Python command line. Now this pulls up a simple
Python interpreter, meaning Python is an interpreted language, and that means that it basically
figures out what it’s going to do as it’s going over the line of code, as opposed to
being a compiled language which is compiled into machine programming and just executed
natively. Let’s type in a simple program here. I’m going to show you how easy it is to program
in Python. I’ll say for i in range zero to twenty, and this basically says create a variable
called i, and we’re going to loop it from zero to twenty. Therefore i will be zero,
then i will be one, then two, then three, on up until twenty. Type a colon, and then
your enter. Now let’s do a tab here, and we’re going to say print hello exclamation point
and make sure that’s enclosed in quotation marks. Then space. Say plus. And then a STR
for string. We’re going to convert i to a string, and that’s what you have to do in
order to print it out with other text on the screen. Then another plus, and then say i
times twenty is equal to… let’s close our quote, then another plus. I’m going to say
string again, i times twenty, that asterisk means multiplication. So basically we’re going
to print out the text hello twenty times and then the number that i currently is and then
multiply i times twenty and print out what that is. I’m going to put a little space here
after my hello so we can read it a little better. Say enter and say enter again. Now
i as you can see has looped from zero to twenty, and it’s saying it didn’t include twenty.
It’s important to keep in mind. See i times twenty is zero, if i is ten, then i times
twenty is two hundred. It just shows you how easy it is to kind of crunch some numbers
in a programming language. Just search the internet for Python tutorials, you can find
a whole lot more interesting stuff than this. My name is Dave Andrews and I’ve just showed
you how to program a computer.

Computer Help : How to Program a Computer
Tagged on:                                     

50 thoughts on “Computer Help : How to Program a Computer

  • June 2, 2009 at 9:00 pm
    Permalink

    good video sir but u forgot to tell us wich python do we have to download> there is 2 many. i m runnig vista wich python do i have to download?

    Reply
  • December 2, 2009 at 1:49 am
    Permalink

    i'd like to learn this one day….

    Reply
  • November 7, 2010 at 3:22 pm
    Permalink

    python 2.6 when you put colon enter says its invaled

    Reply
  • March 19, 2011 at 6:03 am
    Permalink

    @valentass88 you can not program a computer. a computer is a physical object. you can program programs and computer code but not a computer. you can only make a computer and control it.

    Reply
  • April 12, 2011 at 4:08 pm
    Permalink

    why is your mouth …? forget it

    Reply
  • April 30, 2011 at 1:10 am
    Permalink

    dude increase your resolution

    Reply
  • June 28, 2011 at 1:08 am
    Permalink

    @cealac all right, just 16,162 more

    Reply
  • July 9, 2011 at 8:44 am
    Permalink

    @valentass88 The answer to your question is both A and B.
    A computer holds a program within its RAM which is in itself populated via the CPU.
    The program actually exists physically within the memory of the computer.

    So you program a program within the computer…

    This is the sort of question a teacher would ask if they knew very little about computers.
    My advice – find another teacher…
    (I have a Bsc Hons in Information Technology and 22 years of experience working in IT)

    Reply
  • July 9, 2011 at 4:37 pm
    Permalink

    @jagara1 hehe finding another teacher would not solve this, because she was only english teacher not it teacher. But yeah i was the only one in the class who knew it

    Reply
  • July 16, 2011 at 2:45 pm
    Permalink

    @JLPZ76
    He probably forgot to tell you it requires a little knowledge about computers first. Try clicking the installer link. ^^

    Reply
  • August 8, 2011 at 11:29 pm
    Permalink

    Keep the good work, i think python is a good language to start with 😉

    Reply
  • August 24, 2011 at 9:55 pm
    Permalink

    he says this is programming? lol hes like a 8 year old with his first computer

    Reply
  • December 16, 2011 at 12:18 am
    Permalink

    @C00LH4X3R Instead of asking how about you just figure it out? And that leet language is mad annoying. -.-

    Reply
  • December 27, 2011 at 2:48 pm
    Permalink

    useless!!!!!!!

    Reply
  • March 7, 2012 at 3:23 am
    Permalink

    This guy has Firefox and not Chrome. He clearly has no idea what he's talking about.

    Reply
  • May 18, 2012 at 8:00 pm
    Permalink

    if you want to learn programming, use dreamweaver

    Reply
  • February 1, 2013 at 7:35 am
    Permalink

    Is learning what you have to put in to program hard to learn? I want to Learn programming. Say to create windows 9 as an example

    Reply
  • February 20, 2013 at 4:53 pm
    Permalink

    how to program porn?

    Reply
  • March 24, 2013 at 4:34 am
    Permalink

    My first language was C… would recommend because although it was hard initially it made learning new languages (notably assembly) much easier

    Reply
  • April 26, 2013 at 3:37 am
    Permalink

    i m need more advise,,, i want 60 dollars n hour… i need money

    Reply
  • June 9, 2013 at 11:03 am
    Permalink

    He says 2.6.

    Reply
  • June 10, 2013 at 10:16 pm
    Permalink

    People…programming is telling a computer what to do…if you program a video game..it just simply tell the computer or game to do this like telling a character to walk or something…python is a simple language to begin in but there are tons of them..i personally program in Java and probably start learning c sharp…..

    Reply
  • June 13, 2013 at 10:33 am
    Permalink

    please i want to learn computer programming

    Reply
  • July 1, 2013 at 3:14 am
    Permalink

    2.6 was on the video

    Reply
  • July 5, 2013 at 5:18 pm
    Permalink

    LMAO. Time to throw it out and get a new one, sir.

    Reply
  • September 3, 2013 at 2:48 am
    Permalink

    Starts by clicking firefox. im like hey not internet explorer this is good news.

    Reply
  • October 10, 2013 at 7:34 pm
    Permalink

    Yeah but theres others which are better for each computer and 2.6 is the python model he is using update number.

    Reply
  • January 15, 2014 at 8:34 pm
    Permalink

    wut a great video fugget

    Reply
  • March 13, 2014 at 10:48 pm
    Permalink

    Thanks for the help 🙂

    Reply
  • March 23, 2014 at 6:28 pm
    Permalink

    …so what's the point of this video? All you do is tell us to download python and show us how "easy" it is to program it then say we should look at more tutorials on youtube.

    Reply
  • July 14, 2014 at 2:05 am
    Permalink

    you are a GOON

    Reply
  • October 26, 2014 at 9:41 pm
    Permalink

    1. for all pc gramming go inventor healthy care for humanity  if you dare and really have brainsbytecells ?
    2. modernized pc programmed boys they sold their soul to devilside money evilmind.html5 version algorythme

    Reply
  • March 31, 2015 at 11:24 pm
    Permalink

    I don't understand where this math magic coding is leading to progress

    Reply
  • September 1, 2015 at 12:55 am
    Permalink

    ah, i remember the old computers

    Reply
  • September 2, 2015 at 7:40 pm
    Permalink

    why doesnt anyone know how to teach this shit honestly not one person on youtube is capable of explaining the basics of computer processes and why the program was built they just say do this click that and you know how to program BULLSHIT

    Reply
  • December 22, 2015 at 5:42 pm
    Permalink

    i coulden't understand shit

    Reply
  • January 14, 2016 at 3:44 pm
    Permalink

    how to even fcking memorize what youll type down

    Reply
  • February 9, 2016 at 11:20 pm
    Permalink

    LMAO, are you fucking high? You just showed how a basic function in any computed language works……

    Reply
  • February 15, 2016 at 12:59 am
    Permalink

    You Suck

    Reply
  • May 19, 2016 at 7:48 pm
    Permalink

    This shit is really hard. I must not give up.

    Reply
  • September 27, 2016 at 11:29 pm
    Permalink

    man his computer must be from like 2001

    Reply
  • July 13, 2017 at 4:25 am
    Permalink

    comment section is toxic, abeit poor tutorial and misleading title.

    title of the video should be: "Using a for loop in Python's interactive shell"

    CS new comers get overwhelmed and discouraged when this is the type of content that comes up when they start searching.

    Reply
  • July 20, 2017 at 12:16 am
    Permalink

    but can you make anything happen outside of that black text box?

    Reply
  • October 17, 2017 at 10:21 am
    Permalink

    I'm using this to hack 🙂

    Reply
  • December 16, 2017 at 5:06 am
    Permalink

    if the computer has no programs on it, how do you program it.

    Reply
  • November 25, 2018 at 7:22 pm
    Permalink

    &^%$#@@

    Reply
  • April 4, 2019 at 5:53 pm
    Permalink

    oml you posted this when i was 1 ;-;

    Reply
  • June 18, 2019 at 11:00 pm
    Permalink

    Am a programmer in kenya

    Reply
  • June 20, 2019 at 12:31 am
    Permalink

    Dave can you really program a computer to do literally anything? Please hurry with your answer and thank you.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *