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")
Write a program to check whether a given string is palindrome or not in python
s = input("Enter a string: ")if s == s[::-1]:print("Palindrome")else:print("Not Palindrome")
0 Comments
Post a Comment