def compare ( self , first , second ) : if first . lower ( ) == second . lower ( ) : return True else : return False
how to compare without case in python
Case in - sensitive comparison of two strings . Required arguments : * first - The first string to compare . * second - The second string to compare .
def compare(self, first, second):
        """
        Case in-sensitive comparison of two strings.
        Required arguments:
        * first - The first string to compare.
        * second - The second string to compare.
        """
        if first.lower() == second.lower():
            return True
        else:
            return False