[Tutor] String comparison
Anand Ramakrishna
anandrs@hexaware.com
Thu, 8 Aug 2002 14:50:08 +0530
Hi,
How do I perform a string comparison in Python. I was trying to =
arrange names alphabetically and it worked if all the names were in the =
same cases. When I used a mixture of cases, the upper case came first =
and then the lower cases. This is because of the ASCII values of upper =
case letters which is smaller than those of lower case ones. Is there =
any command which will compare irrespective of the cases. Or better how =
can I ignore cases.
I am newbie, so my doubts may be really stupid. Please bear with me.
Thanks and regards,
Anand~