On 05/04/2015 07:08 PM, Jag Sherrington wrote:
Hi, Alan>
Please don't top-post. Enter your new message *after* whatever portion
of the previous message you're quoting. I'm rearranging the portion of
your message to conform to that standard.
On Monday, 4 May 2015, 17:35, Alan Ga
On 05/05/15 00:08, Jag Sherrington wrote:
Hi, Alan
> Enter the item's wholesale cost: 0.50
(AFTER THIS LINE PRINTS I HIT ENTER AND WOULD
EXPECT THE NEXT LINE TO GIVE ME THE RESULT
But why would it? Your print code is all inside a loop that
only runs if the price is negative. If you enter a posi
Hi, Alan> Enter the item's wholesale cost: 0.50 (AFTER THIS LINE PRINTS I HIT
ENTER AND WOULD EXPECT THE NEXT LINE TO GIVE ME THE RESULT> Enter the item's
wholesale cost: "Retail price: $1.25" INSTEAD WHEN I HIT ENTER I GET "Enter
the item's wholesale cost: " AGAIN AND AGAIN
Regards, Jag
Bra
Jag Sherrington wrote:
> Hi,
> There appears to be a problem with this program.
> It is taken from the "Starting out with Python" book third edition.
>
> The problem is when the "validate the wholesale cost" is introduced.
> Without the validator the code works fine, but with it the code won't le
On 04/05/15 05:26, Jag Sherrington wrote:
Hi,
There appears to be a problem with this program.
It is taken from the "Starting out with Python" book third edition.
The problem is when the "validate the wholesale cost" is introduced.
Without the validator the code works fine, but with it the code
Hi,
There appears to be a problem with this program.
It is taken from the "Starting out with Python" book third edition.
The problem is when the "validate the wholesale cost" is introduced.
Without the validator the code works fine, but with it the code won't let you
enter a positive wholesale co