Skip to content

Add files via upload#35

Merged
EimanTahir071 merged 4 commits intomainfrom
EimanTahir071-patch-4
Mar 29, 2026
Merged

Add files via upload#35
EimanTahir071 merged 4 commits intomainfrom
EimanTahir071-patch-4

Conversation

@EimanTahir071
Copy link
Copy Markdown
Owner

@EimanTahir071 EimanTahir071 commented Mar 29, 2026

This pull request adds a new function to check if a given string is a palindrome, ignoring case and non-alphanumeric characters. It also includes a user prompt to enter a string and prints whether or not the input is a palindrome.

  • Added an is_palindrome function that normalizes the input by removing non-alphanumeric characters and converting to lowercase, then checks if the string reads the same forwards and backwards. (5-Working with Strings/exercise2.py)
  • Added a command-line interface that prompts the user for input and displays whether the entered string is a palindrome. (5-Working with Strings/exercise2.py)

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a simple palindrome-checker exercise script that normalizes input and reports whether it reads the same forwards and backwards.

Changes:

  • Introduces is_palindrome() helper that filters non-alphanumerics and normalizes case
  • Adds CLI interaction to read user input and print palindrome result

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

EimanTahir071 and others added 3 commits March 29, 2026 09:32
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@EimanTahir071
Copy link
Copy Markdown
Owner Author

@copilot review my pull request and suggest changes

@EimanTahir071
Copy link
Copy Markdown
Owner Author

@copilot Merge it into main and fix the conflcts

Copy link
Copy Markdown
Owner Author

@EimanTahir071 EimanTahir071 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 29, 2026

@copilot review my pull request and suggest changes

Reviewed the PR and the palindrome implementation already follows repo conventions (main guard, case-insensitive normalization, docstring). No further changes suggested at this time. No UI changes.

@EimanTahir071 EimanTahir071 merged commit 96cddee into main Mar 29, 2026
1 check passed
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.

3 participants