pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/ShravanDalavi/Simple-Python-Mini-Projects/pull/1

k crossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/github-c53b912064ef8de5.css" /> fix: ignore case and spaces in Palindrome Checker by Anamikaasinghraj · Pull Request #1 · ShravanDalavi/Simple-Python-Mini-Projects · GitHub
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy