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. 


-- 
DaveA

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to