Re: [Tutor] DOWHILE counter

2010-02-16 Thread Benno Lang
On 17 February 2010 12:32, wrote: > > Hi i am trying to write a pseudocode to read an input number and its 15% > output value. The counter is supposed to process 4 input numbers. Help > please!! If it's pseudocode, then you can write a loop however you like. If you have a Python-related questio

[Tutor] DOWHILE counter

2010-02-16 Thread cubanylinks4eva
Hi i am trying to write a pseudocode to read an input number and its 15% output value. The counter is supposed to process 4 input numbers. Help please!! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.p

Re: [Tutor] The Order of Imports and install order of modulesandother matters (XP vs W7, ...)

2010-02-16 Thread Alan Gauld
"Hansen, Mike" wrote I'm aware of Pep8. It's a good starting point. Anything more in-depth than Pep8 and the Zen of Python? There is the generic book "Code Complete" which is excellent, but definitely not short! And it's not Python specific - in fact doesn't even mention Python so far as I

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] The Order of Imports and install order of modules andother matters (XP vs W7, ...)

2010-02-16 Thread Hansen, Mike
From: sri...@gmail.com [mailto:sri...@gmail.com] On Behalf Of Wayne Werner Sent: Tuesday, February 16, 2010 1:07 PM To: Hansen, Mike Cc: Tutor Python Subject: Re: [Tutor] The Order of Imports and install order of modules an

Re: [Tutor] Where to find the article for comparing different Python Development Environment

2010-02-16 Thread Serdar Tumgoren
> Where to find the article for comparing different Python Development > Environment > > The Python wiki is a good place to start: http://wiki.python.org/moin/IntegratedDevelopmentEnvironments ___ Tutor maillist - Tutor@python.org To unsubscribe or cha

[Tutor] Where to find the article for comparing different Python Development Environment

2010-02-16 Thread Mjollnir Xia
Where to find the article for comparing different Python Development Environment ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] The Order of Imports and install order of modules andother matters (XP vs W7, ...)

2010-02-16 Thread Wayne Werner
http://www.python.org/dev/peps/pep-0008/ This make me wonder. Is there a document or web site that has Python Best > Practices? Something along the lines of the Perl Best Practices book, but > probably shorter. =) HTH, Wayne -- To be considered stupid and to be told so is more painful than bei

Re: [Tutor] The Order of Imports and install order of modules andother matters (XP vs W7, ...)

2010-02-16 Thread Hansen, Mike
> -Original Message- > From: tutor-bounces+mike.hansen=atmel@python.org > [mailto:tutor-bounces+mike.hansen=atmel@python.org] On > Behalf Of Kent Johnson > Sent: Saturday, February 13, 2010 8:06 AM > To: Wayne Watson > Cc: Tutor Python > Subject: Re: [Tutor] The Order of Imports a

Re: [Tutor] count time limit

2010-02-16 Thread Kent Johnson
On Tue, Feb 16, 2010 at 11:54 AM, Shurui Liu (Aaron Liu) wrote: > >  Modify the guess_my_number.py program to limit the number of guesses to ten (10). > >    Tell the user up front that they have ten guesses. > > > After each guess, tell the user that they have ___ guesses remaining. > > Here are

Re: [Tutor] ipython, PYTHONPATH, on a MAC

2010-02-16 Thread Kent Johnson
On Tue, Feb 16, 2010 at 10:46 AM, John [H2O] wrote: > > Hello, > > I'm not a Mac user, but I'm a promoter of Python! I have a good friend using > a Mac who's becoming sceptical of python due to frustrations with the > PYTHONPATH. I'm trying to help... > > Everything is fine running vanilla python.

[Tutor] "Sounding" Off, IDLE (Win7)

2010-02-16 Thread Wayne Watson
In Win7 IDLE, when I type in something with a syntax problem, a bell rings. How do I stop that? I've looked at Control Panel Sounds, but don't see anything of apparent use. -- "Crime is way down. War is declining. And that's far from the good news." -- Steven Pinker (and other sources) Why is t

[Tutor] Wrestingly with the Py2exe Install, Win7, Py2.5

2010-02-16 Thread Wayne Watson
I've finally decided to see if I could make an executable out of a py file. Win7. Py2.5. I brought down the install file and proceeded with the install. I got two warning messages. Forgot the first. The second said,"Could not set the key value." I again used OK. I think that was the only choice

Re: [Tutor] PyCon anyone?

2010-02-16 Thread Wayne Watson
On 2/16/2010 7:42 AM, Kent Johnson wrote: On Tue, Feb 16, 2010 at 10:17 AM, Wayne Watson wrote: Hi all, I'm going to PyCon this year for the first time (yeah!) and I would love to meet other regular contributors to the tutor list. Is anyone else going to be there? Any interest in a "Mee

[Tutor] count time limit

2010-02-16 Thread Shurui Liu (Aaron Liu)
Modify the guess_my_number.py program to limit the number of guesses to ten (10). Tell the user up front that they have ten guesses. After each guess, tell the user that they have ___ guesses remaining. Here are the requirement of my assignment. I want to ask the third one: what is the co

Re: [Tutor] ipython, PYTHONPATH, on a MAC

2010-02-16 Thread Michael Fourman
If you start Python from command line you can just use usual bash methods put PYTHONPATH= xxx in ~/.profile or for use in a single shell export PYTHONPATH=xxx If you start Python from a dbl-clickable application you need to get the PYTHONPATH into the application's environment See http://

Re: [Tutor] PyCon anyone?

2010-02-16 Thread Vern Ceder
Kent Johnson wrote: On Tue, Feb 16, 2010 at 10:09 AM, Vern Ceder I'm not a very regular contributor here, but we'd love have you (and anyone else who's on the tutor list) join the edu-sig group for dinner and open space, if you're so inclined... Our open space page is at http://us.pycon.org/201

[Tutor] ipython, PYTHONPATH, on a MAC

2010-02-16 Thread John [H2O]
Hello, I'm not a Mac user, but I'm a promoter of Python! I have a good friend using a Mac who's becoming sceptical of python due to frustrations with the PYTHONPATH. I'm trying to help... Everything is fine running vanilla python. Importing modules works fine. But in ipython, the module paths ne

Re: [Tutor] PyCon anyone?

2010-02-16 Thread Kent Johnson
On Tue, Feb 16, 2010 at 10:17 AM, Wayne Watson wrote: >> >> Hi all, >> >> I'm going to PyCon this year for the first time (yeah!) and I would >> love to meet other regular contributors to the tutor list. Is anyone >> else going to be there? Any interest in a "Meet the tutors" Open Space >> or dinn

Re: [Tutor] PyCon anyone?

2010-02-16 Thread Kent Johnson
On Tue, Feb 16, 2010 at 10:09 AM, Vern Ceder wrote: > Kent Johnson wrote: >> >> Hi all, >> >> I'm going to PyCon this year for the first time (yeah!) and I would >> love to meet other regular contributors to the tutor list. Is anyone >> else going to be there? Any interest in a "Meet the tutors" O

Re: [Tutor] PyCon anyone?

2010-02-16 Thread Wayne Watson
Hi all, I'm going to PyCon this year for the first time (yeah!) and I would love to meet other regular contributors to the tutor list. Is anyone else going to be there? Any interest in a "Meet the tutors" Open Space or dinner? Kent ___ Tutor maillist

Re: [Tutor] PyCon anyone?

2010-02-16 Thread Vern Ceder
Kent Johnson wrote: Hi all, I'm going to PyCon this year for the first time (yeah!) and I would love to meet other regular contributors to the tutor list. Is anyone else going to be there? Any interest in a "Meet the tutors" Open Space or dinner? Kent Hi Kent, I'm not a very regular contribu

[Tutor] PyCon anyone?

2010-02-16 Thread Kent Johnson
Hi all, I'm going to PyCon this year for the first time (yeah!) and I would love to meet other regular contributors to the tutor list. Is anyone else going to be there? Any interest in a "Meet the tutors" Open Space or dinner? Kent ___ Tutor maillist -

Re: [Tutor] A Stuborn Tab Problem in IDLE

2010-02-16 Thread Wayne Watson
On 2/14/2010 7:01 PM, Dave Angel wrote: Wayne Watson wrote: I got to the dos command line facility and got to the file. I executed the program, and it failed with a syntax error. I can't copy it out of the window to paste here, Once you've discovered the DOS box, you should also discover Q

Re: [Tutor] Getting caller name without the help of "sys._getframe(1).f_code.co_name" ?

2010-02-16 Thread Andreas Kostyrka
Am Samstag, 13. Februar 2010 16:56:08 schrieb patrice laporte: > Hi, > > Being in an exeption of my own, I want to print the name of the caller, and > I'm looking for a way to have it. > > I've found a lot of recipe all of them using what seems to be, according to > me, a not so good trick : all