function(2)

Download Raw Clone


  1. def palindrom():
  2. a = input()
  3. if a[0:] == a[-1::-1]:
  4. print(a, 'is palindrom')
  5. return a
  6. else:
  7. print(a, 'is not palindrom')
  8. for i in range(3):
  9. palindrom()

Raw paste data: