Write a program to check whether a given string is palindrome or not in python

Code

s = input("Enter a string: ")
if s == s[::-1]:
print("Palindrome")
else:
print("Not Palindrome")

Output