# Palindrome program in Python

1 min readMar 25, 2021

**Palindrome program in python**

A number or string is said to be a palindrome if we invert the number or string and the string or number remains the same as the original number or string.

**Example:**

Input: TUTURIALANDEXAMPLE

Output: This is not a palindrome

Input: 151

Output: This is a palindrome

**Rule to check palindrome:**

- Read the given input and hold it in the temporary variable.
- Reverse the input.
- Compare temporary variable with reversed input.
- If both are the same, the input string or number is a palindrome.
- Else input string or number is not a palindrome.
- End the program.

https://www.tutorialandexample.com/python-program-to-find-the-area-of-a-circle/