[Tutor] searching data from a list read from a file

2011-05-15 Thread Lea Parker
Hello J When you have time I would like some advice on where to go. I have created a program that reads charge account numbers from a file. The user is to enter a charge account number from the list presented and the program should then tell them whether they have entered a valid or invalid num

[Tutor] Fixed help with exceptions (Lea Parker)

2011-05-13 Thread Lea Parker
again if I cannot. Thanks again. Lea -Original Message- From: tutor-bounces+lea-parker=bigpond@python.org [mailto:tutor-bounces+lea-parker=bigpond@python.org] On Behalf Of tutor-requ...@python.org Sent: Saturday, 14 May 2011 12:58 PM To: tutor@python.org Subject: Tutor Digest, Vol

[Tutor] Help with exceptions please

2011-05-13 Thread Lea Parker
Hello I have another assignment I am trying to fine tune. The idea is to make sure exceptions work. I have come up with a problem when testing my code. When I enter a golf score for a player the program returns the 'error that has occurred'. I only want it to do this if someone doesn't enter an

[Tutor] return values function thanks

2011-04-22 Thread Lea Parker
Hi Alan Thanks once again for your help. Lea -Original Message- From: tutor-bounces+lea-parker=bigpond@python.org [mailto:tutor-bounces+lea-parker=bigpond@python.org] On Behalf Of tutor-requ...@python.org Sent: Friday, 22 April 2011 5:32 PM To: tutor@python.org Subject: Tutor

[Tutor] return values function

2011-04-22 Thread Lea Parker
Hello I am hoping someone can put me on the right track. The code below includes the assignment question at the beginning. I seem to have been able to calculate average ok, but what I can't seem to do is sort it so it will return a grade for each result. Can you give me some advice to h

[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] Contents of Tutor digest Vol 86 Issue 57

2011-04-15 Thread Lea Parker
to make it work efficiently. Perhaps not what a programmer does but it helps me this way. Thanks so much. Leonie -Original Message- From: tutor-bounces+lea-parker=bigpond@python.org [mailto:tutor-bounces+lea-parker=bigpond@python.org] On Behalf Of tutor-requ...@python.org Sent

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

2011-04-15 Thread Lea Parker
Thank you message 4 this has solved my problem I can now work out the next part of my program. Thank you so much. -Original Message- From: tutor-bounces+lea-parker=bigpond@python.org [mailto:tutor-bounces+lea-parker=bigpond@python.org] On Behalf Of tutor-requ...@python.org Sent

[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] Tutor Digest, Vol 85, Issue 91

2011-03-24 Thread Lea Parker
Message 3 - I solved my problem. Yah Me!!! Thanks P.S I hope this is the right way to let you know so you don't waste your time. Lea -Original Message- From: tutor-bounces+lea-parker=bigpond@python.org [mailto:tutor-bounces+lea-parker=bigpond@python.org] On Behalf Of

[Tutor] Error in programming

2011-03-24 Thread Lea Parker
Hello Just wondering if you have some time to cast your eyes over another basic program. # Prompt user for data def main(): print 'This program is to calculate your ticket sales to the softball game' print #blank line # Value of each lev

[Tutor] Help - want to display a number with two decimal places

2011-03-04 Thread lea-parker
HelloI have created the following code but would like the program to include two decimal places in the amounts displayed to the user. How can I add this?My code:# Ask user to enter purchase pricepurchasePrice = input ('Enter purchase amount and then press the enter key $') # Tax ratesstateTaxRate =

[Tutor] Python using version 3.1

2010-12-18 Thread Lea Parker
Hello I am working through a purchased text book Python programming for beginners. Chapter two shows how to create a basic program using triple-quoted strings. I am having problems working out what I have done incorrectly. The game over block writing should stay on the same line but the bottom ha