Python program to check whether a string is a palindrome or not

1731
Python program to check whether a string is a palindrome or not
string=input("Please enter a string: ")
if(string==string[::-1]):
      print("Given string is palindrome")
else:
      print("Given string is not palindrome")

    Output 1:
            Please enter a string: malayalam
            Given string is palindrome
    Output 2:
            Please enter a string: Hello
            Given string is not palindrome

इन्हें भी देखें।

Python Programs के लिये यहाँ click करें।

 

 

 

 

Python program to check whether a string is a palindrome or not write a python program to check whether a string is a palindrome or not program to check whether a string is a palindrome or not in python write a program to check whether a string is a palindrome or not write a program to check whether a string is a palindrome or not in python program to check a string is a palindrome or not program to check a string is a palindrome or not in python check whether a string is a palindrome or not check a string is a palindrome or not check whether a string is a palindrome or not in python Python Program to Check if a String is a Palindrome or Not Program to Check if a String is a Palindrome or Not in python write a python Program to Check if a String is a Palindrome or Not write a program to check whether the given string is a palindrome or not python program to check whether a given string is a palindrome or not program to check given string is palindrome or not in python program to check given string is palindrome in python program to check given string is palindrome code to check whether a string is palindrome or not