Quantcast
Channel: How do I do a case-insensitive string comparison? - Stack Overflow
Viewing all articles
Browse latest Browse all 16

How do I do a case-insensitive string comparison?

$
0
0

How can I compare strings in a case insensitive way in Python?

I would like to encapsulate comparison of a regular strings to a repository string, using simple and Pythonic code. I also would like to have ability to look up values in a dict hashed by strings using regular python strings.


Viewing all articles
Browse latest Browse all 16

Latest Images

Trending Articles





Latest Images