Python: Compare two strings without cases example

str1 = "HELLO PYTHON"
str2 = "hello python"

# Ignore Cases and check if equal
print(str1.lower() == str2.lower())

Output:

True