Case Insensitive Comparison



Problem to find the both string are equal or not. Case does not matter in that problem.



Example-1:


Input    : s1 = "coding" s2 = "CODING"
Output   : True  


Example-2:


Input    : s1 = "Python" s2 = "pYtHon"
Output   : True   


Example-3:


Input    : s1 = "Crazy" s2 = "Coding"
Output   : False   







Solution




s1 = "coding"

s2 = "CODING"

if(s1.casefold() == s2.casefold()):

    print("True")

else:

    print("False")



Output



True