> On Mar 8, 2014, at 6:36 AM, Dave Angel <da...@davea.name> wrote:
> 
> Mark Lawrence <breamore...@yahoo.co.uk> Wrote in message:
>>> On 08/03/2014 01:23, Scott W Dunning wrote:
>>> 
>>> 
>>> def print_hints(secret, guess):
>>>     if guess < 1 or guess > 100:
>> 
>> Only now do I feel that it's time to point out that the above line would 
>> probably be written by an experienced Python programmer as:-
>> 
>> if 1 > guess > 100:
> 
> With an appropriate 'not' or its equivalent,  of course. 
> 
This is how our teacher wanted it all written under the print_hints function.  
Besides if I was an experienced python programmer I wouldn't be asking such 
trivial stuff under the tutor forum lol. 
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to