Advertisement
Cherry_vviolet

Untitled

Jul 17th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2.  
  3. def palindrom(x):
  4. if x == str(x [::-1]):
  5. return True
  6. else:
  7. return False
  8.  
  9. for i in range(3):
  10. if palindrom(input()):
  11. print('Есть палиндром')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement