Run
str1 = 'Hello World' str2 = 'HELLO' if str1.upper() == str2.upper() : print('two strings are equal ignoring case') else : print('two strings are not equal ignoring case')
Output