Skip to content

fix: ignore case and spaces in Palindrome Checker#1

Open
Anamikaasinghraj wants to merge 1 commit intoShravanDalavi:mainfrom
Anamikaasinghraj:fix/palindrome-ignore-case
Open

fix: ignore case and spaces in Palindrome Checker#1
Anamikaasinghraj wants to merge 1 commit intoShravanDalavi:mainfrom
Anamikaasinghraj:fix/palindrome-ignore-case

Conversation

@Anamikaasinghraj
Copy link

Updated palindrome_checker.py to ignore uppercase/lowercase and spaces.
Now "Race Car" will correctly return True.

@ShravanDalavi
Copy link
Owner

Updated palindrome_checker.py to ignore uppercase/lowercase and spaces. Now "Race Car" will correctly return True.

Great improvement! 👍 Thanks for making it more robust.
Just a couple of small fixes before I can merge:

  1. Replace word with s in the else block.
  2. Remove the extra palindrome_checker() call at the bottom (since main() handles execution).

Once you update those, I’ll be happy to merge 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants