On Sep 4, 2009, at 8:31 PM, kb1...@aim.com wrote:

I know, I'm a total noob (started yester day)
But when I enter this code:
x = 1
if x>0:
    a = raw_input ("Type something in...I will echo it:")
    print a
    x=x+1
it does not loop..am I missing something here?

In your example the if statement is only evaluated once, for when x = 1. If you want to create a loop replace the if with a while.

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

Reply via email to