Forezz

ДЗ 6 Н 2

Jul 16th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. s = 0
  2. def pali (x):
  3.     if x == x[::-1]:
  4.         s = 1
  5.     else:
  6.         s=0
  7.     return s
  8. s += pali (x = input())
  9. s += pali (x = input())
  10. s += pali (x = input())
  11. if s >= 1:
  12.     print ("Yes")
  13. else:
  14.     print ("No")
Advertisement
Add Comment
Please, Sign In to add comment