Re: [Tutor] Having Unusual results

2015-05-06 Thread Jag Sherrington
Excellent all working good, thank you. Regards, Jag BraveArt Multimedia On Saturday, 2 May 2015, 22:28, Dave Angel wrote: On 05/02/2015 04:36 AM, Peter Otten wrote: > Jag Sherrington wrote: > With that the calculation becomes > >>>> buns = 20

Re: [Tutor] Python program malfunction

2015-05-04 Thread Jag Sherrington
cost: " AGAIN AND AGAIN Regards, Jag BraveArt Multimedia On Monday, 4 May 2015, 17:35, Alan Gauld wrote: 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" b

[Tutor] Python program malfunction

2015-05-04 Thread Jag Sherrington
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

[Tutor] Having Unusual results

2015-05-02 Thread Jag Sherrington
Hi Can anyone tell me where I am going wrong the end result doesn't add up? people = int(input('Enter how many people '))numdogs = int(input('Enter how many dogs ')) hotdogs = 10buns = 8dogsleft = 0bunsleft = 0 # total number of hot dogs neededdogs_needed = (numdogs * people) # how many packages o

[Tutor] Newbie problems

2015-04-30 Thread Jag Sherrington
Can anyone please tell me what I am doing wrong?As this code I have for the Roulette Wheel colours exercise, won't work. number = int(input('Enter a number between 0 and 36: '))green_number = (0) red_number = (1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36) black_number = (2,