Re: [Tutor] Newbie problems

2015-05-02 Thread Sibylle Koczian
Am 02.05.2015 um 09:58 schrieb Alan Gauld: I made no mention of green because it is not a tuple. Can you see why 'in' is not the right test for green. Can you see why the interpreter is complaining? *This is what I programmed:* number = int(input('Enter a number between 0 and 36: ')) green_nu

Re: [Tutor] Newbie problems

2015-05-02 Thread Dave Angel
1) Please reply-list, or if your email program doesn't support that, do a reply-all. The idea is to make sure tutor@python.org is in your To: field. Otherwise you're just leaving private messages, and that's not what a public forum like this is about. 2) Please use text email, not html. As

Re: [Tutor] Newbie problems

2015-05-02 Thread Alan Gauld
Please use ReplyAll to include everyone on the the list. On 02/05/15 03:26, Jag Sherrington wrote: Hi Alan Thanks for your help. I followed your instruction and get the following message: Enter a number between 0 and 36: 9 Traceback (most recent call last): File "C:\Python34\Tests\Roulette_w

Re: [Tutor] Newbie problems

2015-04-30 Thread Alan Gauld
On 30/04/15 04:58, Jag Sherrington wrote: 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,

Re: [Tutor] Newbie problems

2015-04-30 Thread Dave Angel
On 04/29/2015 11:58 PM, Jag Sherrington wrote: 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

[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,