Python program to check if a string is Palindrome or not

  • Write a python function to check if it is palindrome or not. A string is said to be palindrome if reverse of the string is same as string. For example, “radar” is palindrome, but “radix” is not palindrome.
  • A palindrome is a string that is the same read forward or backward.
  • If word or sequence read same from backward as well as forward and  it is called palindrome.

Palindrome Program Step

  • Input
  • Reverse the input
  • Input vs rev-input


  • Python program to check if a number is a palindrome or not.
  • Python program to check a given string is a palindrome or not. 



Post a Comment

Post a Comment (0)