Ignore case in string comparison

Viewed 42407

If I have two variables, a and b and they could be integers, float, or strings.

I want to return True if they are equal (in case of string, ignore case).

As Pythonic as possible.

3 Answers
Related