Question: Data science palindrome.py Using import sys: .Create a program, palindrome.py, that has a function that takes one string argument and prints a sentence indicating if
Data science
palindrome.py Using import sys: .Create a program, palindrome.py, that has a function that takes one string argument and prints a sentence indicating if the text is a palindrome. The function should consider only the alphanumeric characters in the string, and not depend on capitalization, punctuation, or whitespace. If your string is a palindrome it should print: It's a palindrome! If it is not a palindrome, it should print: It's not a palindrome! *Note: please copy and paste these versions into your code because the type of apostrophe can differ between IDES, command line, etc.
Step by Step Solution
3.36 Rating (159 Votes )
There are 3 Steps involved in it
Here is an example code for the palindromepy program that satisfies the requir... View full answer
Get step-by-step solutions from verified subject matter experts
