On Thu, 26 Aug 2010 04:18:28 am Greg Bair wrote:
> I'm assuming what you really want is :
>
> if letter in strng:
>     print "true"
> else:
>     print "false"

Oh I hope not... the above is better written as:

print letter in strng

(assuming you don't care about the difference between "True" 
and "true").



-- 
Steven D'Aprano
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to