This page is to help you to learn computer programming.
This book is very good
http://www.briggs.net.nz/log/writing/snake-wrangling-for-kids
You can watch the student Chitlay05
The teacher is thara Mike cariaso
Lesson 1
(4/30/2007 10:21:03 PM) chitlay05: hello,
(4/30/2007 10:21:10 PM) chitlay05: I am very sorry.
(4/30/2007 10:21:40 PM) chitlay05: in three days the internet does word.
(4/30/2007 10:22:07 PM) chitlay05: so i am very sorry/
(4/30/2007 10:22:26 PM) chitlay05: now the computer training is finish.
(4/30/2007 10:22:37 PM) chitlay05: so we can try again.
(4/30/2007 10:22:52 PM) chitlay05: please forgive me.
(4/30/2007 10:22:55 PM) chitlay05: bye.
(1:56:26 PM) cariaso: welcome back to the internet
(1:56:31 PM) cariaso: we've missed you :)
(1:57:28 PM) cariaso: we will continue the computer class as soon as we are both online at the same time
(11:10:19 PM) chitlay05: hello, good morning.
(11:10:36 PM) cariaso: wonderful to see you
(11:10:41 PM) cariaso: any news or question?
(11:10:47 PM) cariaso: or shall we begin class?
(11:11:15 PM) chitlay05: ok, now we can begin class
(11:11:40 PM) cariaso: ok, do you have python on this machine?
(11:12:37 PM) chitlay05: i think any machine do't have.
(11:13:01 PM) cariaso: you started to download it last time
(11:13:22 PM) chitlay05: no i did't
(11:13:40 PM) chitlay05: at that time the interner fall.
(11:13:57 PM) cariaso: ok, download http://python.org/ftp/python/2.5.1/python-2.5.1.msi
(11:14:05 PM) cariaso: save it to the desktop
(11:14:17 PM) cariaso: and if it finishes while we talk, you can run it
(11:14:26 PM) cariaso: if it does not finish, we can still teach
(11:14:41 PM) chitlay05: ok,
(11:15:06 PM) cariaso: you will learn to program in a language called "python"
(11:15:20 PM) cariaso: there are many languages used to program a computer
(11:15:24 PM) cariaso: but I like this one
(11:15:35 PM) cariaso: I think it is easier to learn
(11:15:47 PM) cariaso: and powerful enough that I use it very often
(11:16:18 PM) cariaso: as we start you will send little programs to it
(11:16:44 PM) cariaso: first, you will pretend to be the computer
(11:16:51 PM) cariaso: and I will be the computer programmer
(11:17:04 PM) cariaso: so here is your first computer program
(11:17:09 PM) cariaso: print "hello world"
(11:17:30 PM) cariaso: what do you think the computer will show when it runs that program?
(11:18:18 PM) chitlay05: i sorry i don't know.
(11:18:33 PM) cariaso: the computer will show:
(11:18:37 PM) cariaso: hello world
(11:18:58 PM) cariaso: so here is computer program #2
(11:19:07 PM) cariaso: print "hello mike"
(11:19:11 PM) cariaso: what do you think the computer will show when it runs that program?
(11:19:59 PM) chitlay05: it will like the first program the computer will show hollo mike
(11:20:04 PM) cariaso: good
(11:20:08 PM) cariaso: so here is computer program #3
(11:20:40 PM) cariaso: print "hello mike", "hello chitlay"
(11:21:28 PM) chitlay05: the coputer will show hello mike and hello chitlay.
(11:21:34 PM) cariaso: good
(11:21:46 PM) cariaso: but you must think like a computer
(11:21:53 PM) cariaso: a computer is very exact
(11:22:26 PM) cariaso: so, do not tell me "the coputer will show hello mike and hello chitlay"
(11:22:31 PM) cariaso: instead tell me
(11:22:40 PM) cariaso: hello mike hello chitlay
(11:23:06 PM) cariaso: do you understand?
(11:23:32 PM) chitlay05: yes i do
(11:23:40 PM) cariaso: so here is computer program #4
(11:23:59 PM) cariaso: print "hello pawray", "hello doctor"
(11:24:31 PM) chitlay05: hello pawray hello doctor
(11:24:41 PM) cariaso: good.
(11:24:50 PM) cariaso: there is a very small error in your answer
(11:25:14 PM) cariaso: what the computer will actually do is:
(11:25:23 PM) cariaso: hello pawrayhello doctor
(11:25:30 PM) cariaso: there is no space
(11:25:51 PM) cariaso: so here is computer program #5
(11:26:16 PM) cariaso: print "hello maesot", "hello thailand"
(11:26:46 PM) cariaso: what do you think the computer will show when it runs that program?
(11:27:50 PM) chitlay05: hello maesothello thailand
(11:28:01 PM) cariaso: perfect
(11:29:12 PM) cariaso: so here is computer program #6
(11:29:18 PM) cariaso:
x = "world"
print "hello ",x
(11:29:27 PM) cariaso: ok, what will the computer do?
(11:30:53 PM) chitlay05: hello x = world
(11:31:14 PM) cariaso: no
(11:31:26 PM) cariaso: would you like to guess again?
(11:32:27 PM) chitlay05: no
(11:32:29 PM) cariaso: ok
(11:32:35 PM) cariaso: the computer will print:
(11:32:37 PM) cariaso: hello world
(11:33:10 PM) cariaso: in math, and in computers we use something called a "variable"
(11:33:24 PM) cariaso: variable means something can change
(11:33:38 PM) cariaso: soon we will start to make variables that change
(11:33:48 PM) cariaso: but we will start with simpler ones that do not change
(11:34:07 PM) cariaso: so here is computer program #7
(11:34:20 PM) cariaso:
x = "chitlay"
print "hello ",x
(11:34:28 PM) cariaso: what will the computer show?
(11:35:55 PM) chitlay05: hello chitlay x
(11:36:34 PM) cariaso: no, try again
(11:37:10 PM) chitlay05: hello x=chitlay
(11:37:44 PM) cariaso: no
(11:37:47 PM) cariaso: it will print
(11:37:51 PM) cariaso: hello chitlay
(11:38:09 PM) cariaso: the 'x' is just a way to store the name
(11:38:29 PM) cariaso: when we ask python to print x
(11:38:44 PM) cariaso: it looks to see that we have put "chitlay" inside the x
(11:38:57 PM) cariaso: and it changes the x into 'chitlay'
(11:41:57 PM) cariaso: here is program #8
x = "mon"
print "hello ",x
(11:41:59 PM) cariaso: what will the computer show?
(11:42:46 PM) chitlay05: hello mon
(11:43:52 PM) cariaso: very good
(11:44:09 PM) cariaso: now a harder one
(11:44:33 PM) cariaso: here is program #9
x = "2+2"
print "hello ",x
(11:45:04 PM) cariaso: what will the computer show?
(11:45:24 PM) chitlay05: hello 2+2
(11:45:28 PM) cariaso: very good
(11:45:41 PM) cariaso: here is program #10
x = 2+2
print "hello ",x
(11:45:46 PM) cariaso: what will the computer show?
(11:46:22 PM) chitlay05: hello 2+2
(11:46:37 PM) cariaso: no
(11:46:44 PM) cariaso: this time it will print
(11:46:46 PM) cariaso: hello 4
(11:47:08 PM) cariaso: you see that there are no quotes ( " " )
(11:47:29 PM) cariaso: the quotes are very important
(11:47:53 PM) cariaso: here is program #11
x = 2+3
print "hello ",x
what will the computer show?
(11:48:12 PM) chitlay05: hello 5
(11:48:45 PM) cariaso: very good
(11:48:54 PM) cariaso: here is program #12
x = "2+3"
print "hello ",x
what will the computer show?
(11:49:44 PM) chitlay05: hello 5
(11:49:49 PM) cariaso: no, try again
(11:50:36 PM) chitlay05: hello 2+3
(11:50:40 PM) cariaso: yes, very good
(11:51:29 PM) cariaso: are you downloading python? how much time does it need?
(11:52:07 PM) chitlay05: no it is finished
(11:52:32 PM) chitlay05: now
(11:52:39 PM) cariaso: very good
(11:52:42 PM) cariaso: run that program
(11:52:47 PM) cariaso: and you will install python
(11:53:03 PM) cariaso: you can just "ok" / "next" / "ok"
(11:53:12 PM) cariaso: all of the default values are just fine
Lesson 2
At this point I try to help chitlay install python. You can skip if you do not need help
(11:13:57 PM) cariaso: ok, download http://python.org/ftp/python/2.5.1/python-2.5.1.msi
(11:54:30 PM) chitlay05: how to install
(11:54:31 PM) chitlay05: ?
(11:54:52 PM) cariaso: double click on "python-2.5.1.msi"
(11:54:56 PM) cariaso: and it should run
(11:55:00 PM) cariaso: do you see it?
(11:55:21 PM) chitlay05: yes
(11:55:32 PM) chitlay05: and then next?
(11:55:56 PM) chitlay05: there is two point
(11:56:07 PM) cariaso: yes
(11:56:09 PM) cariaso: next
(11:56:10 PM) cariaso: next
(11:56:11 PM) cariaso: next
(11:56:13 PM) chitlay05: install fof all users
(11:56:17 PM) cariaso: yes, good
(11:56:25 PM) chitlay05: and install just for me?
(11:57:14 PM) chitlay05: can't install it
(11:58:04 PM) cariaso: can you switch to the administrator
(11:58:07 PM) cariaso: find the program
(11:58:13 PM) cariaso: and install it?
(11:58:26 PM) cariaso: it will take a few minutes
(11:58:30 PM) cariaso: but I will wait
(11:58:34 PM) chitlay05: it said some files that need to be updated are currentlay in use.
(11:58:50 PM) chitlay05: now i am in Admi
(11:59:19 PM) cariaso: ok, can you install it now?
(11:59:32 PM) chitlay05: no
(11:59:48 PM) cariaso: what is the error message?
(12:02:28 AM) chitlay05: i will make page screen and than send to you.
(12:02:37 AM) cariaso: ok
(12:02:42 AM) cariaso: good solution :)
(12:04:36 AM) chitlay05: but i can' t send for you in you send file.
(12:05:14 AM) chitlay05: for other account is can send if send file.
(12:05:42 AM) cariaso: hmm
(12:05:46 AM) cariaso: I don't understand
(12:05:52 AM) cariaso: but maybe it is ok
(12:05:58 AM) cariaso: if you reboot
(12:06:03 AM) cariaso: then try to install
(12:06:11 AM) cariaso: I think maybe it will work
(12:06:15 AM) cariaso: can you try that?
(12:26:06 AM) chitlay05: are you there?
(12:26:36 AM) cariaso: yes
(12:27:01 AM) cariaso: did you get python to install?
(12:27:10 AM) chitlay05: no
(12:27:21 AM) chitlay05: can't install.
(12:27:56 AM) cariaso: hmm
(12:28:02 AM) cariaso: ok, I will try it once more
(12:28:10 AM) cariaso: and I will do the same steps with you
(12:28:14 AM) cariaso: maybe I can help
(12:29:23 AM) cariaso: run python-2.5.1.msi
(12:29:43 AM) cariaso: "Install for all users"
(12:29:47 AM) cariaso: Next
(12:30:13 AM) cariaso: c:python25 is ok
(12:30:16 AM) cariaso: Next
(12:30:27 AM) cariaso: do you see the same messages?
(12:31:23 AM) chitlay05: yes.
(12:31:40 AM) cariaso: "customize..." next
(12:32:07 AM) cariaso: for me, now it starts to install
(12:32:10 AM) cariaso: what do you see?
(12:32:23 AM) cariaso: ah, I see the same message
(12:32:55 AM) cariaso: it want you to close some programs
(12:33:25 AM) chitlay05: close what programs
(12:33:27 AM) chitlay05: ?
(12:34:03 AM) cariaso: you see "Files in use" ?
(12:34:20 AM) cariaso: what does it say in the box?
(12:34:36 AM) chitlay05: yes
(12:35:08 AM) cariaso: what does it say in the box?
(12:35:26 AM) chitlay05: in box cariaso- instant message
(12:35:39 AM) cariaso: ok, anything else?
(12:35:48 AM) chitlay05: showMeDo-windows interner explorer
(12:35:59 AM) chitlay05: windows media player
(12:36:14 AM) chitlay05: htree thing.
(12:36:20 AM) cariaso: good
(12:36:39 AM) cariaso: do you have windows media player running?
(12:36:57 AM) chitlay05: yes.
(12:37:05 AM) cariaso: close windows media player
(12:37:10 AM) cariaso: just for a few minutes
(12:37:40 AM) cariaso: then press "Retry"
(12:37:51 AM) cariaso: it will think for a minute
(12:37:59 AM) cariaso: and then it should list
(12:38:21 AM) cariaso: "cariaso - instant message"
"showMeDo - windows internet explorer"
(12:38:38 AM) cariaso: but it no longer says "windows media player"
(12:40:47 AM) chitlay05: this time two things else.
(12:40:47 AM) chitlay05: can't install
(12:40:47 AM) chitlay05: it dose work.
(12:41:08 AM) cariaso: yes, next you must close internet explorer
(12:41:21 AM) cariaso: and then you must close the program that you use to talk to me
(12:41:31 AM) cariaso: when you close both of them
(12:41:34 AM) cariaso: press retry
(12:41:40 AM) cariaso: and maybe now you can install
(12:41:45 AM) cariaso: try that
(12:41:56 AM) cariaso: and then start this program again
(12:42:04 AM) cariaso: and we will send more instant messages
(12:47:48 AM) chitlay05: hi
(12:47:57 AM) cariaso: hello
(12:47:59 AM) cariaso: any luck?
(12:48:08 AM) chitlay05: yes
(12:48:13 AM) cariaso: wonderful
Lesson 3
python is now installed
(12:48:14 AM) chitlay05: it is finished
(12:48:23 AM) cariaso: ok, so let us test
(12:48:37 AM) cariaso: Start->run->python
(12:48:42 AM) cariaso: what do you see?
(12:49:04 AM) chitlay05: c:/python 25/python.exe
(12:49:38 AM) cariaso: type this:
(12:49:45 AM) cariaso: print "hello world"
(12:50:22 AM) chitlay05: and then
(12:50:34 AM) cariaso: did you see it do anything?
(12:50:45 AM) cariaso: did it show you "hello world"?
(12:50:51 AM) chitlay05: yes it say hello world
(12:51:02 AM) cariaso: good now try this program:
(12:51:08 AM) cariaso: print hello world
(12:51:20 AM) cariaso: notice that this time there are no quotes
(12:51:59 AM) chitlay05: what do it use for/
(12:52:02 AM) chitlay05: ?
(12:52:09 AM) cariaso: do you see a message
(12:52:15 AM) cariaso:
File "", line 1
print hello world
(12:52:18 AM) cariaso: ?
(12:52:48 AM) cariaso: and then
SyntaxError: invalid syntax
(12:53:42 AM) chitlay05: i sorry i don't undrestand you all words.
(12:55:12 AM) cariaso: python is working
(12:55:24 AM) cariaso: I want you to tell it to do something
(12:55:47 AM) cariaso: what do you see if you tell it:
(12:55:53 AM) cariaso: 6+4
(12:55:55 AM) cariaso: ?
(12:56:34 AM) chitlay05: 10
(12:56:53 AM) cariaso: ok now ask it:
(12:56:56 AM) cariaso: 6/4
(12:57:00 AM) cariaso: and then
(12:57:05 AM) cariaso: 6/4.0
(12:57:37 AM) chitlay05: hello 6/4
(12:58:10 AM) chitlay05: how to ask puestions?
(12:58:23 AM) cariaso: type this:
(12:58:28 AM) cariaso: 6/4
(12:58:33 AM) cariaso: what does it say?
(12:58:55 AM) chitlay05: it say 1
(12:58:57 AM) cariaso: good
(12:59:00 AM) cariaso: and now
(12:59:03 AM) cariaso: 6/4.0
(12:59:25 AM) chitlay05: 1.5
(1:00:09 AM) chitlay05: what it use for?
(1:00:51 AM) cariaso: well, it can be used for anything
(1:01:03 AM) cariaso: but now you are seeing only very small programs
(1:01:12 AM) chitlay05: ok
(1:01:13 AM) cariaso: type:
(1:01:19 AM) cariaso: print "hello world"
(1:01:21 AM) cariaso: and then
(1:01:27 AM) cariaso: print hello world
(1:01:36 AM) chitlay05: if we ask it will answer all right?
(1:01:41 AM) cariaso: always
(1:01:47 AM) cariaso: you won't believe me yet
(1:01:55 AM) cariaso: but the computer will always be right
(1:02:04 AM) cariaso: sometimes as we do harder programs
(1:02:13 AM) cariaso: You will think it has made a mistake
(1:02:22 AM) cariaso: but the mistake will always be your mistake
(1:02:37 AM) cariaso: so when you type:
(1:02:42 AM) cariaso: print hello world
(1:02:49 AM) cariaso: that is not a good program
(1:02:55 AM) cariaso: and python will not understand it
(1:03:05 AM) cariaso: the computer is very fast, and very powerful
(1:03:10 AM) cariaso: but it is not very smart
(1:03:20 AM) cariaso: it does not understand
(1:03:28 AM) cariaso: so it will only do what you want
(1:03:37 AM) cariaso: if you give it perfect programs
(1:03:43 AM) cariaso: print hello world
(1:03:48 AM) cariaso: is not a perfect program
(1:06:23 AM) chitlay05: if i want to ask python something , what questions do i need to type?
(1:06:33 AM) cariaso: I am not sure how to answer
(1:06:44 AM) cariaso: but I think if I keep teaching
(1:06:55 AM) cariaso: soon you will understand how to ask the question differently
(1:09:06 AM) chitlay05: but i can't ask python questions.
(1:09:31 AM) cariaso: python cannot answer questions
(1:09:40 AM) cariaso: all it can do is what you tell it to do
(1:09:45 AM) chitlay05: can you teach me more?
(1:09:48 AM) cariaso: but that is very powerful
(1:10:19 AM) cariaso: I will be very happy to teach you more
(1:10:26 AM) cariaso: but now I must sleep
(1:10:31 AM) cariaso: you have python
(1:10:38 AM) cariaso: I know you don't know how to do much yet
(1:10:48 AM) cariaso: but you can try little experiments with it
(1:11:13 AM) cariaso: like:
x = "hello"
y = "world"
print x, y
(1:11:48 AM) chitlay05: ok, thank you.
(1:11:53 AM) cariaso: try that
(1:11:55 AM) cariaso: and much more
(1:12:00 AM) cariaso: we will teach again soon
(1:12:07 AM) chitlay05: in thailand now 1pm
(1:12:15 AM) cariaso: in usa, 1am
(1:12:27 AM) cariaso: and I must do a lot tomorrow very early
(1:12:38 AM) chitlay05: ok,
(1:12:47 AM) chitlay05: have a nice dream
(1:13:03 AM) chitlay05: good night.
(1:13:15 AM) chitlay05: try more later.
Comments (0)
You don't have permission to comment on this page.