hi Danny,As far as i am aware you must declare your variable first, something like a=0The same would go for shope that helpspaulOn Sun Jun 22 10:45 , Danny Laya sent:Hi ! I have learned wiki tutor for non-programmer and I found some hill that stopping me. InĀ Non-Programmer's Tutorial for Python/C
Few... Thanks all, i have found the wrong, i miss some space between != and 0.
Thank's for the help. I really apreciate it !
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
On Sun, Jun 22, 2008 at 6:45 AM, Danny Laya <[EMAIL PROTECTED]> wrote:
> Hi ! I have learned wiki tutor for non-programmer and I found some hill that
> stopping me. In Non-Programmer's Tutorial for Python/Count to 10, wiki ask
> me to write this code :
>
> a = 1
> s = 0
> print 'Enter Numbers to a
But when i write while a != 0: and then i press enter,
python terminal tell me :
while a ! = 0:
File "", line 1
while a ! = 0:
^
SyntaxError: invalid syntax
Can you find my mistake, guys ? Sorry to bother you, I try to
Hi,
Python's trying to give you a hint:
while
Hi ! I have learned wiki tutor for non-programmer and I found some hill that
stopping me. In Non-Programmer's Tutorial for Python/Count to 10, wiki ask me
to write this code :
a = 1
s = 0
print 'Enter Numbers to add to the sum.'
print 'Enter 0 to quit.'
while a != 0:
print 'Current Sum:', s