No subject
Sun Nov 12 08:01:13 CET 2006
if you got a detailed answer which showed you *exactly*
how to do it, or even included actual code, rather than
merely pointing you in the right direction.
For example, your request was quite acceptable, but
the best response would be just "have you looked at the
sort() method for lists?".
If you were then to experiment with sort, and you were
reasonably bright, you would quickly figure out a way
to use it to find the most popular flavour of ice cream.
If that answer were not enough for you, the next good
answer would probably be something like "have you worked
through the online tutorial yet?".
A better way of asking these questions is to try to come
up with your own solution, and then post your best attempt
with the question. That way people can (a) help you
along the path you've already chosen (if it could work),
and (b) get a feeling that you've taken more than two
seconds to think about this and that you've actually
*tried*.
Of course, this group being what it is, someone will
almost always post a fully functional solution with
annotated source without even questioning whether that
will hurt you more than it will help. ;-)
I actually find that a little sad, personally...
-Peter
More information about the Python-list
mailing list