[Tutor] Not workin!

Martin Walsh mwalsh at mwalsh.org
Wed Sep 30 05:52:41 CEST 2009


Luke Paireepinart wrote:
> In this case you are saying "is their input equal to this list with many
> elements?" and the answer is always going to be No because a string
> won't be equal to a list unless both are empty.

I know you probably didn't mean this as it reads, or as I'm reading it,
but an empty string and an empty list aren't 'equal' either.

In [1]: '' == []
Out[1]: False

HTH,
Marty




More information about the Tutor mailing list