print("Enter 'y' for exit.")
str1 = input("Enter first string: ")
if str1 == 'y':
    exit();
else:
    str2 = input("Enter second string: ")
    if str1 == str2:
        print("\nBoth strings are equal to each other.")
        print(string1,"==",string2);
    else:
        print("\nStrings are not equal.")
        print(string1,"!=",string2);
