Please click on ads

Please click on ads

Sunday, 28 February 2021

palindrom in python:program

 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