[Tutor] How to determine if every character in one string is inanother string?

Kent Johnson kent37 at tds.net
Thu Jul 26 01:25:48 CEST 2007


Alan Gauld wrote:
> "Terry Carroll" <carroll at tjc.com> wrote
> 
>>   if Y in X:
> 
> FWIW I believe that 'in' did only work for single characters up until
> version 2.X so your ideas may have been based on experiences with
> an earlier Python version.

Yes, it changed in Python 2.3.

Kent


More information about the Tutor mailing list