str1 = "Hello"
str2 = "hello"
if str1.lower() == str2.lower():
print("Strings are equal ignoring case")
import re
str1 = "Hello"
str2 = "hello"
if re.match(str1, str2, re.IGNORECASE):
print("Strings are equal ignoring case")
str1 = "Hello"
str2 = "hello"
if len(str1) == len(str2) and all(char1.lower() == char2.lower() for char1, char2 in zip(str1, str2)):
print("Strings are equal ignoring case")