Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if 2 strings are equal python

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
 
PREVIOUS NEXT
Tagged: #check #strings #equal #python
ADD COMMENT
Topic
Name
6+8 =