diff --git a/programs/Python/palindrome.py b/programs/Python/palindrome.py new file mode 100644 index 0000000..076f71c --- /dev/null +++ b/programs/Python/palindrome.py @@ -0,0 +1,7 @@ +#Program to check for palindrome +st=input("Enter any string -> ") +if(st==st[::-1]): + print("The entered string is a palindrome.") +else: + print("Not a palindrome.") +