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):
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
Dnia 16-07-2010 o 19:54:01 Emile van Sebille napisał(a):> On 7/16/2010 8:37 AM Mary Morris said...>> Thanks-that helps a lot.>> The only question I have about your pseudocode is what the 'initialize>> result container' does. I'm pretty new to python and scripting in >> general>> so I'm still
Dnia 17-07-2010 o 02:57:46 Steven D'Aprano
napisał(a):
On Sat, 17 Jul 2010 05:44:07 am pk wrote:
In general, the shorter and more descriptive a variable name is,
the better.
That's a generalisation that is contradictory. Short works against
descriptive. Compare:
Well, yes I a