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


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

Reply via email to