Wednesday, 19 January 2022

Is Palindrome

#===================================
# Tanzila Islam
# Email: tanzilamohita@gmail.com
# Language: Python 3.7
#===================================

def isPalindrome(s):
	return s == s[::-1]

S = input()

palindrome = isPalindrome(S)

if palindrome:
	print("Yes")
else:
	print("No")

No comments:

Post a Comment