[Tutor] Help - 2nd validator won't work

2011-04-15 Thread Lea Parker
Hello I now need to get the validator to work on my expense input. If the user puts in a negative I want an error to come up. I have managed it for the budget input but cannot seem to get it to work for the expense. Thanks in advance again for your wonderful help. """This program

Re: [Tutor] Python on TV

2011-04-15 Thread bob gailer
On 4/15/2011 3:35 PM, Alan Gauld wrote: "bob gailer" wrote The show should be here - Pause at 1 minute 20 for the Python screnshot: http://fwd.channel5.com/gadget-show/videos/challenge/surprise-special-part-4 I am told "the video ... cannot be viewed from your currrent country ..." I d

Re: [Tutor] os.chdir() will not accept string variable

2011-04-15 Thread Steve Willoughby
On 15-Apr-11 18:00, Rodney Lewis wrote: I cannot get os.chdir() to accept inputData[0]. os.chdir() works as expected in the interpreter when I put the little 'r' before the exact same string but as a literal, e.g.: r"F:\Music\Siouxsie and the Banshees\the rapture" It's because the string in in

[Tutor] os.chdir() will not accept string variable

2011-04-15 Thread Rodney Lewis
I cannot get os.chdir() to accept inputData[0]. os.chdir() works as expected in the interpreter when I put the little 'r' before the exact same string but as a literal, e.g.: r"F:\Music\Siouxsie and the Banshees\the rapture" When I try to run it I get the following error in reference to the os.ch

Re: [Tutor] Contents of Tutor digest Vol 86 Issue 57

2011-04-15 Thread Lea Parker
- total_expense #Display results print 'Your total expenses for the month $', total_expense print 'Your surplus amount after expenses $', surplus # Call the main function. main() Thank you. -- next part -- An HTML attachment was scrubbe

Re: [Tutor] than "Re: Contents of Tutor digest..." Tutor Digest, Vol 86, Issue 56

2011-04-15 Thread Lea Parker
then this link: http://www.chandia.net/compart/NMT-2.4-20110415.tar.gz Thanks in advance to all of you and to the people that already helped me. ___ andr?s chand?a P No imprima innecesariamente. ?Cuide el medio ambiente! -- next part ------ A no

Re: [Tutor] Help - accumulator not working (Lea)

2011-04-15 Thread Alan Gauld
"Lea Parker" wrote I am trying to create this program for a uni assignment. I cannot get it to add the expenses to the accumulator I have set. You have to write the code to add each value to the accumulator Your loop does not do that """This program is to calculate if the user is over

Re: [Tutor] Help - accumulator not working (Lea)

2011-04-15 Thread michael scott
Hi Lea, how are you today? Well please keep in mind that nothing is "wrong" with your code, its doing exactly what you asked it to do. But I would call your attention to your while loop, you want to accumulate things, but may I ask exactly what are you accumulating in your loop? Also quite b

Re: [Tutor] Help - accumulator not working (Lea)

2011-04-15 Thread Joel Goldstick
On Fri, Apr 15, 2011 at 5:52 PM, Lea Parker wrote: > Hello > > > > I am trying to create this program for a uni assignment. I cannot get it to > add the expenses to the accumulator I have set. Would you mind having a look > and letting me know if I have something in the wrong place or indented >

[Tutor] Help - accumulator not working (Lea)

2011-04-15 Thread Lea Parker
Hello I am trying to create this program for a uni assignment. I cannot get it to add the expenses to the accumulator I have set. Would you mind having a look and letting me know if I have something in the wrong place or indented incorrectly. Perhaps I am missing something. There could be o

Re: [Tutor] Python on TV

2011-04-15 Thread Alan Gauld
"bob gailer" wrote The show should be here - Pause at 1 minute 20 for the Python screnshot: http://fwd.channel5.com/gadget-show/videos/challenge/surprise-special-part-4 I am told "the video ... cannot be viewed from your currrent country ..." I don't know if YouTube will be any more oblig

[Tutor] Help to explain commenting

2011-04-15 Thread Andrés Chandía
h the code in a tgz file, if the attached can not be seen then this link: http://www.chandia.net/compart/NMT-2.4-20110415.tar.gz Thanks in advance to all of you and to the people that already helped me. ___ andrés chandía P No imprima innecesariamente. ¡Cuide el

Re: [Tutor] Script for Parsing string sequences from a file

2011-04-15 Thread Joel Goldstick
sorry, I hit send too soon on last message On Fri, Apr 15, 2011 at 8:54 AM, Joel Goldstick wrote: > > > On Fri, Apr 15, 2011 at 8:41 AM, Spyros Charonis wrote: > >> Hello, >> >> I'm doing a biomedical degree and am taking a course on bioinformatics. We >> were given a raw version of a public data

Re: [Tutor] Script for Parsing string sequences from a file

2011-04-15 Thread Joel Goldstick
On Fri, Apr 15, 2011 at 8:41 AM, Spyros Charonis wrote: > Hello, > > I'm doing a biomedical degree and am taking a course on bioinformatics. We > were given a raw version of a public database in a file (the file is in > simple ASCII) and need to extract only certain lines containing important > in

[Tutor] Script for Parsing string sequences from a file

2011-04-15 Thread Spyros Charonis
Hello, I'm doing a biomedical degree and am taking a course on bioinformatics. We were given a raw version of a public database in a file (the file is in simple ASCII) and need to extract only certain lines containing important information. I've made a script that does not work and I am having tro

[Tutor] ImportError: No module named wdmmgext.load

2011-04-15 Thread Ben Teeuwen
Hi, I'm trying to install the code from http://wheredoesmymoneygo.org/getting-started/ on my local machine. I've got a mac os 10.6.7, python 2.7.1, pip, and the most recent postgres installation. I'm now testing imported data and I get 21 errors (see attached). The majority sounds like: f

Re: [Tutor] Fwd: Python skipping if statement (Really simple code)

2011-04-15 Thread Peter Otten
Casey Key wrote: > -- Forwarded message -- > From: Casey Key > Date: Thu, Apr 14, 2011 at 4:02 PM > Subject: Python skipping if statement (Really simple code) > To: tu...@python.com > > > Hey im a newbie to python, but i made this test code. and it is just > skipping over the if

Re: [Tutor] Python skipping if statement (Really simple code)

2011-04-15 Thread Alan Gauld
"Casey Key" wrote Hey im a newbie to python, but i made this test code. and it is just skipping over the if statement, which is essential to the program. Which if statement, there are several? Are there any error messages? If so send them in their entirety. If not can you show us whatever ou

[Tutor] Fwd: Python skipping if statement (Really simple code)

2011-04-15 Thread Casey Key
-- Forwarded message -- From: Casey Key Date: Thu, Apr 14, 2011 at 4:02 PM Subject: Python skipping if statement (Really simple code) To: tu...@python.com Hey im a newbie to python, but i made this test code. and it is just skipping over the if statement, which is essential to th

Re: [Tutor] Writing to the file system and verify the files written out.

2011-04-15 Thread Steven D'Aprano
Becky Mcquilling wrote: dir_list = os.listdir(self.dirname) dir_set = set() for file in dir_list: dir_set.add(file) self.assertEqual(dir_list, text_files, "The filelist is not equal") You're comparing a list of file names to a set of file names. They