This is a simple program in Python which accepts both string and integer and checks if it is palindrome. Basically this program coverts any input to a string and then performs a reverse string operation. There are two Functions used in this program, firstly rev_str(), which reverse the string passed to it and secondly palstr() which checks whether the string is palindrome.
Here is the code Snippet
if ( x == rev_str(x)):
print "Not palindrome";
Well found bugs, feel free to report them !
Latest posts by Bikash Panda (see all)
- Firmata protocol with Raspberry Pi and Arduino - September 13, 2017
- IOT:Power outlet controlled from internet using WeMOS - August 9, 2017
- OSMC on Raspberry PI with Setup and Control using Android App - July 7, 2017