To ignore the difference between uppercase and lowercase letters, use the string methods upper or lower : Compare String : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Compare String »

 

To ignore the difference between uppercase and lowercase letters, use the string methods upper or lower


print 'FnOrD'.lower() == 'Fnord'.lower()



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo String
» Compare String