[Tutor] computer basics

2009-12-28 Thread Richard Hultgren
I am learning Python slowly.  I would like to begin learning all about how 
computers work from the bottom up.  I have an understanding of binary code.  
Where should I go from here; can you suggest continued reading, on line or off 
to continue my education?
                                            Thank You
                                                Richard


  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] running function program

2009-12-20 Thread Richard Hultgren
Hello,
when i try to run this (see below) i get message: socket error: no connection 
could be made because the target maching actively refused it, and, idle 
subprocess didn't make connection.  either idle can't start a subprocess or 
personal firewall software is blocking the connection.
def mult(a, b):
if b == 0:
return 0
rest = mult(a, b - 1)
value = a + rest
return value
print 3 * 2 = , mult(3, 2)
i used idle window(gui) and new window and it works sometimes.  Help!?
Richard


  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] (no subject)

2009-12-19 Thread Richard Hultgren
Hello, 
    I am a newcomer, I guess I'm have trouble thinking like a computer yet. My 
question is:
in this program: 
 resp = raw_input(What's your name? )

 print Hi, %s, nice to meet you % resp 
    
    does %s mean 'place the user response here' and secondly what and why do I 
put % resp at the end of the print statement? I know this is very basic and 
future questiions will be more interesting I hope.
                                                    Richard H.


  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Fw: loops

2009-12-08 Thread Richard Hultgren




- Forwarded Message 
From: Richard Hultgren hultgren1...@yahoo.com
To: tutor@python.org
Sent: Mon, December 7, 2009 2:53:40 PM
Subject: loops
I'm quite new but determined.  Can you explain to me, step by step, what is 
going on in the computer in this loop.  I hope I am not being too dumb!


a = 0
b = 1
count = 0
max_count = 20
while count  max_count:
    count = count + 1
    # we need to keep track of a since we change it
    old_a = a# especially here
    old_b = b
    a = old_b
    b = old_a + old_b
    # Notice that the , at the end of a print statement keeps it
    # from switching to a new line
    print old_a,


  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] loops

2009-12-07 Thread Richard Hultgren
a = 0
b = 1
count = 0
max_count = 20
while count  max_count:
    count = count + 1
    # we need to keep track of a since we change it
    old_a = a# especially here
    old_b = b
    a = old_b
    b = old_a + old_b
    # Notice that the , at the end of a print statement keeps it
    # from switching to a new line
    print old_a,



  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor