OPN = input("Please enter a number:")
# slicing and pallindrome example
if OPN == OPN[::-1]:
print("This is a palindrome ")
else:
print("this is not a palindrome")
for QWE in set(OPN):
print(QWE, "occurs", OPN.count(QWE)," times")
OPN = input("Please enter a number:")
# slicing and pallindrome example
if OPN == OPN[::-1]:
print("This is a palindrome ")
else:
print("this is not a palindrome")
for QWE in set(OPN):
print(QWE, "occurs", OPN.count(QWE)," times")