Compare string demo : Compare String : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Compare String »

 

Compare string demo


str1 = 'abc'
str2 = 'lmn'
str3 = 'xyz'
print str1 < str2
print str2 != str3
print str1 < str3 and str2 == 'xyz'



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Compare String