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
- Forwarded Message
From: Richard Hultgren
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
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
pu
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
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?