Advertisement
liza124911

function(2)

Jul 22nd, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  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.                        
  9. for i in range(3):
  10.                 palindrom()
  11.                 #break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement