+ 1

How do I take case sensitivity out of the equation?

I'm trying to figure out how to program palindromes and it won't work when upper and lower case letters are involved. Ex: Dad is not a palindrome because of the capitol 'd'. Please help https://code.sololearn.com/cKjE35L4Q6Fr/?ref=app

20th Apr 2018, 6:13 PM
Jeff Myers
Jeff Myers - avatar
1 Antwort
+ 3
Make "x" lower case! ...#change line 6 to if x.lower() != x[::-1].lower():
20th Apr 2018, 6:25 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar