str1 == str2
# return True if the strings are equals. Case sensitive !
str1 = "python"
str2 = "python"
str1 == str2 # True
str1 = "python"
str2 = "javascript"
str1 == str2 # False
str1 = "python"
str2 = "PYTHON"
str1 == str2 # False
# Program to check the email and re-enterd email is same or different
email= "info@itsmycode.com"
confirmemail="INFO@ITSMYCODE.COM"
if(email.lower() == confirmemail.lower()):
print("Email Address are same")
else:
print("Email Address are not same")