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)
- OSMC on Raspberry PI with Setup and Control using Android App - July 7, 2017
- DHT12 Interfacing with Raspberry Pi using Pi4J - June 19, 2017
- Send data using MQTT from Raspberry Pi with JAVA - June 12, 2017