Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Challenge: Palindrome Checker #31

Closed
fevziismailsahin opened this issue Jan 11, 2025 · 0 comments · Fixed by #34
Closed

Challenge: Palindrome Checker #31

fevziismailsahin opened this issue Jan 11, 2025 · 0 comments · Fixed by #34
Assignees

Comments

@fevziismailsahin
Copy link
Member

Palindrome Checker

Challenge Description:

Create a Python module that checks if given words or numbers are palindromes. The module should check a list of strings and numbers to determine if each one is a palindrome, meaning it reads the same forward and backward. The check should be done for multiple inputs using a for loop.

Expected Behavior:

  • The module should iterate over a list of strings and numbers.
  • For each input, it should remove non-alphanumeric characters and convert the string to lowercase.
  • It should then check if the cleaned string is a palindrome (i.e., if it reads the same forwards and backwards).
  • The output should print whether each input is a palindrome or not.

Example:

Input:

strings_to_check = ["Radar", "12321", "Hello", "1.232.1", "12345", "aA", "Test"]

Output:

'Radar' is a palindrome.
'12321' is a palindrome.
'Hello' is not a palindrome.
'1.232.1' is a palindrome.
'12345' is not a palindrome.
'aA' is a palindrome.
'Test' is not a palindrome.

Notes:

  • The function should ignore spaces, punctuation, and be case-insensitive.
  • Edge cases such as empty strings or strings with special characters should be handled.
  • The for loop should handle multiple strings or numbers for palindrome checks.
@fevziismailsahin fevziismailsahin self-assigned this Jan 11, 2025
@fevziismailsahin fevziismailsahin moved this from TODO to DOING in ET6 Foundations Group 02 Jan 11, 2025
@fevziismailsahin fevziismailsahin moved this from DOING to READY FOR REVIEW in ET6 Foundations Group 02 Jan 11, 2025
@fevziismailsahin fevziismailsahin closed this as completed by moving to READY FOR REVIEW in ET6 Foundations Group 02 Jan 11, 2025
@fevziismailsahin fevziismailsahin linked a pull request Jan 12, 2025 that will close this issue
43 tasks
@Vahablotfi Vahablotfi self-assigned this Jan 12, 2025
@Vahablotfi Vahablotfi moved this from READY FOR REVIEW to UNDER REVIEW in ET6 Foundations Group 02 Jan 12, 2025
@fevziismailsahin fevziismailsahin moved this from UNDER REVIEW to DONE in ET6 Foundations Group 02 Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

2 participants