Hacking Course: Explore a vast array of courses spanning different subjects, from technology and arts to business and personal development. Our expert instructors curate each course to ensure you receive top-notch, up-to-date content.
s=input('enter the string or number')
reverse=s[::-1]
if reverse==s: print('yes ,it is palindrom')
else:
print('no,it is not a palindrom')
No comments:
Post a Comment