Re: [Tutor] command error

2010-02-17 Thread pk
Dnia 17-02-2010 o 00:41:21 Shurui Liu (Aaron Liu) napisał(a): But I have tried, it doesn't work on my workstation, i don't know why. I run it on my python software, python 3.0. The script is written in Python 2. Try rewriting it, mostly by changing the number formatting, function syntax and

Re: [Tutor] command error

2010-02-16 Thread pk
Dnia 16-02-2010 o 21:55:47 Sander Sweers napisał(a): On 16 February 2010 21:32, Shurui Liu (Aaron Liu) wrote: Here is a program I wrote, I don't know why I cannot exit when I tried 10 times? Hope somebody can help me. Thank you! while (guess != the_number): if (guess > the_number):

Re: [Tutor] command error

2010-02-16 Thread Steven D'Aprano
On Wed, 17 Feb 2010 07:32:44 am Shurui Liu (Aaron Liu) wrote: > Here is a program I wrote, I don't know why I cannot exit when I > tried 10 times? Hope somebody can help me. Thank you! Here is a program that loops ten times, then stops: for i in range(10): print "Loop number", i Here is an

Re: [Tutor] command error

2010-02-16 Thread Sander Sweers
On 16 February 2010 21:32, Shurui Liu (Aaron Liu) wrote: > Here is a program I wrote, I don't know why I cannot exit when I tried 10 > times? Hope somebody can help me. Thank you! > > while (guess != the_number): >     if (guess > the_number): >     print ("Lower...") >     print ("You wer

[Tutor] command error

2010-02-16 Thread Shurui Liu (Aaron Liu)
Here is a program I wrote, I don't know why I cannot exit when I tried 10 times? Hope somebody can help me. Thank you! # Guess My Number # # The computer picks a random number between 1 and 100 # The player tries to guess it and the computer lets # the player know if the guess is too high, too

Re: [Tutor] command error help

2010-02-14 Thread Alan Gauld
"Shurui Liu (Aaron Liu)" wrote SyntaxError: EOL while scanning single-quoted string. Yes, that sounds about right. But it doesn't add much. Can you print the entifre error message not just that single line? Or Here is a program I need to run in putty.exe, but there is an error in it. I

[Tutor] command error help

2010-02-14 Thread Shurui Liu (Aaron Liu)
Here is a program I need to run in putty.exe, but there is an error in it. I cannot find out. When I ran this program, it mentions that the error is in red line. Would you please help me? Thank you! # Useless Trivia # # Gets personal information from the user and then # prints true, but useless i

Re: [Tutor] command error help

2010-02-14 Thread Shurui Liu (Aaron Liu)
SyntaxError: EOL while scanning single-quoted string. 2010/2/14 Shurui Liu (Aaron Liu) > Here is a program I need to run in putty.exe, but there is an error in it. > I cannot find out. When I ran this program, it mentions that the error is in > red line.It shows that "SyntaxError: EOL while