palindrome function

kdt dorjetarap at googlemail.com
Fri Jul 11 18:22:32 EDT 2008


Hi all,

Can someone please explain to me why the following evaluates as false?

>>>list=['a','n','n','a']
>>>list==list.reverse()
>>>False

I'm stumped :s



More information about the Python-list mailing list