Write a python script to check weather inputted string is palindrome or not. - Pratik Ghelani

Pratik Ghelani

Breaking

Sunday, May 10, 2020

Write a python script to check weather inputted string is palindrome or not.

Input:-

string = input("Please enter your own String : ")

if(string == string[:: - 1]):
   print("This is a Palindrome String")
else:

   print("This is Not a Palindrome String")


Output:-




No comments:

Post a Comment